smt
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user