Advertisement
Guest User

struktura

a guest
May 25th, 2016
58
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.43 KB | None | 0 0
  1. #include <stdio.h>
  2. #include <stdlib.h>
  3.  
  4. struct S
  5. {
  6. int x;
  7. int y;
  8. };
  9.  
  10. float oblicza(float a, float b)
  11. {
  12. float suma;
  13. suma = a * b;
  14.  
  15. return suma;
  16. }
  17.  
  18. int main()
  19. {
  20. float c, d ,suma;
  21.  
  22. printf("Prosze podac pierwsza liczbe:");
  23. scanf("%f", &c);
  24.  
  25. printf("Prosze podac druga liczbe:");
  26. scanf("%f", &d);
  27.  
  28. suma = oblicza(c,d);
  29.  
  30. printf("wynik:%f", suma);
  31.  
  32. return 0;
  33. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement