Advertisement
Mary_99

ex1.2

Nov 21st, 2018
98
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 0.21 KB | None | 0 0
  1.  
  2. #include <stdio.h>
  3.  
  4. int main()
  5. {
  6. //pole trójkąta
  7. float a;
  8. float h;
  9. float pole;
  10. printf("a =");
  11. scanf("%f", &a);
  12. printf("h =");
  13. scanf("%f", &h);
  14. pole = (a*h)/2;
  15. printf("%f\n", pole);
  16.  
  17.   return 0;
  18. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement