Skip to content
Snippets Groups Projects
Commit b7aeaaa0 authored by Mikołaj Warenycia's avatar Mikołaj Warenycia
Browse files

Replace PITLAB2-1.c

parent b60b1d74
Branches
No related merge requests found
#include <stdio.h>
# include <stdlib.h>
#include <stdlib.h>
#define PI 3.1415
float main(){
float radi;
......@@ -7,8 +8,8 @@ float main(){
float pole;
printf("podaj promien:\n");
scanf("%f",&radi);
obwod=2*3.1415*radi;
pole=3.1415*radi*radi;
obwod=2*PI*radi;
pole=PI*radi*radi;
printf("Obliczono promien: %f\n",obwod);
printf("Obliczono pole: %f\n",pole);
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment