another_one

This commit is contained in:
2023-11-27 15:32:21 +01:00
parent 6b318a626f
commit d035f94c54
4 changed files with 263 additions and 262 deletions
+18 -18
View File
@@ -1,18 +1,18 @@
#include <stdio.h>
#include <math.h>
int main(){
float r = 0;
float obsah = 0;
float obvod = 0;
float pi = 3.14;
printf("\nZadaj polomer:");
scanf("%f", &r);
obsah = pi * pow(r,2);
obvod = 2 * pi * r;
printf("\nObsah obdlznika je %.2f a obvod je %.2f.", obsah, obvod);
return 0;
}
#include <stdio.h>
#include <math.h>
int main(){
float r = 0;
float obsah = 0;
float obvod = 0;
float pi = 3.14;
printf("\nZadaj polomer:");
scanf("%f", &r);
obsah = pi * pow(r,2);
obvod = 2 * pi * r;
printf("\nObsah obdlznika je %.2f a obvod je %.2f.", obsah, obvod);
return 0;
}