Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <stdio.h>
- #include <stdlib.h>
- int main()
- {
- int n, i, a;
- double w = 0.0;
- n=100;
- for( i = 0; i<n; i++ )
- {
- if(a=!0)
- {
- printf("Podaj liczbe: ");
- scanf("%d", &a);
- w += a;
- }
- else
- {
- printf("%lf", w/n);
- }
- return 0;
- }}
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement