Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
J
języki programowania
Manage
Activity
Members
Labels
Plan
Issues
0
Issue boards
Milestones
Wiki
Code
Merge requests
0
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Stanisław Pokora
języki programowania
Commits
e5ad6d1c
Commit
e5ad6d1c
authored
2 weeks ago
by
Stanisław Pokora
Browse files
Options
Downloads
Patches
Plain Diff
Upload New File
parent
29c4da00
Branches
Branches containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
lab5aa.c
+17
-0
17 additions, 0 deletions
lab5aa.c
with
17 additions
and
0 deletions
lab5aa.c
0 → 100644
+
17
−
0
View file @
e5ad6d1c
#include
<stdio.h>
#include
<stdlib.h>
int
main
(){
int
x
;
float
avg
=
0
;
int
tab
[
5
]
=
{
0
,
0
,
0
,
0
,
0
};
for
(
int
i
=
0
;
i
<
5
;
i
++
){
printf
(
"Wprowadz liczbe:
\n
"
);
scanf
(
"%i"
,
&
x
);
tab
[
i
]
=
x
;
avg
+=
x
;
}
float
srednia
=
avg
/
5
;
printf
(
"Srednia tych liczb wynosi %.2f
\n
"
,
srednia
);
}
This diff is collapsed.
Click to expand it.
Preview
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment