Advertisement
kknndd_

Untitled

Apr 20th, 2021
152
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.53 KB | None | 0 0
  1. #include <stdio.h>
  2. #include <stdlib.h>
  3.  
  4. void objem_kvader(float a,float b,float c);
  5. void povrch_kvader(float a,float b,float c);
  6.  
  7. int main()
  8. {
  9. float a,b,c;
  10. printf("Zadaj cisla:\n");
  11. scanf("%f %f %f",&a,&b,&c);
  12. objem_kvader(a,b,c);
  13. povrch_kvader(a,b,c);
  14. return 0;
  15. }
  16. void objem_kvader(float a,float b,float c){
  17. float v=a*b*c;
  18. printf("Objem kvadra je: %.2f\n",v);
  19. }
  20.  
  21. void povrch_kvader(float a,float b,float c){
  22. float s=2*(a*b+a*c+b*c);
  23. printf("Povrch kvadra je: %.2f\n",s);
  24. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement