This commit is contained in:
2023-11-27 15:22:50 +01:00
commit 6b318a626f
6 changed files with 272 additions and 0 deletions
+18
View File
@@ -0,0 +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;
}