Skip to content
Snippets Groups Projects
Commit 72e82b0c authored by Jakub Węgrowski's avatar Jakub Węgrowski
Browse files

Upload New File

parent f90f25de
Branches
No related merge requests found
lab_2.c 0 → 100644
#include<stdio.h>
#define Pi 3.14156
int main(){
int Z;
printf("Give a whole number:\n");
scanf("%i",&Z);
printf("Given number is: %.i\n",Z);
float R;
printf("Give the radius of a circle:\n");
scanf("%f",&R);
printf("Circumference is equal to: %.2f\n",R * 2 * Pi);
printf("Area is equal to: %.2f\n",R * R * Pi);
float Temp;
printf("Give temperature in Celsius degrees:\n");
scanf("%f",&Temp);
printf("That temperature in Fahrenheit degrees is: %.1f",Temp * 9 / 5 + 32);
return 0;
};
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