Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <stdio.h>
- int main()
- {
- int a, b, c;
- printf("Podaj trzy liczby a ");
- scanf("%d", &a);
- printf("Podaj trzy liczby b ");
- scanf("%d", &b);
- printf("Podaj trzy liczby c ");
- scanf("%d", &c);
- float srednia = (a+b+c)/3;
- printf(" srednia wynosi: %d ", srednia);
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement