Advertisement
Guest User

Untitled

a guest
Jan 19th, 2020
81
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.28 KB | None | 0 0
  1. #include <stdio.h>
  2.  
  3.  
  4. int main()
  5. {
  6. int a, b, c;
  7. printf("Podaj trzy liczby a ");
  8. scanf("%d", &a);
  9. printf("Podaj trzy liczby b ");
  10. scanf("%d", &b);
  11. printf("Podaj trzy liczby c ");
  12. scanf("%d", &c);
  13. float srednia = (a+b+c)/3;
  14. printf(" srednia wynosi: %d ", srednia);
  15. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement