This commit is contained in:
2024-01-22 14:41:15 +01:00
parent a00408d732
commit df2701109f
15 changed files with 110 additions and 71 deletions
+3 -2
View File
@@ -1,7 +1,8 @@
#include <stdio.h>
#include <math.h>
#include "kruh.h"
int circle(){
int circle() {
float r = 0;
float obsah = 0;
float obvod = 0;
@@ -10,7 +11,7 @@ int circle(){
printf("\nZadaj polomer:");
scanf("%f", &r);
obsah = pi * pow(r,2);
obsah = pi * pow(r, 2);
obvod = 2 * pi * r;
printf("\nObsah obdlznika je %.2f a obvod je %.2f.", obsah, obvod);