Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <stdio.h>
- #include <stdlib.h>
- void objem_kvader(float a,float b,float c);
- void povrch_kvader(float a,float b,float c);
- int main()
- {
- float a,b,c;
- printf("Zadaj cisla:\n");
- scanf("%f %f %f",&a,&b,&c);
- objem_kvader(a,b,c);
- povrch_kvader(a,b,c);
- return 0;
- }
- void objem_kvader(float a,float b,float c){
- float v=a*b*c;
- printf("Objem kvadra je: %.2f\n",v);
- }
- void povrch_kvader(float a,float b,float c){
- float s=2*(a*b+a*c+b*c);
- printf("Povrch kvadra je: %.2f\n",s);
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement