#include <stdio.h>
#define PI 3.142
int main(){
float R, A;
printf("Enter the radius:
");
scanf("%f", &R);
A = PI * R * R;
printf("Area is: %f
", A);
}
#include<stdio.h>
int main()
{
double R, A;
scanf("%lf", &R);
A = 3.14159 * R * R;
printf("A=%.4lf
", A);
return 0;
}
Code Example |
---|
C :: check if string starts with c |
C :: reading string with spaces in c |
C :: same project on different monitor in intellij mac |
C :: c code to python code converter online |
C :: sdl_renderfillrect |
C :: restart nginx in alpine linix |
C :: how to get user input in c |
C :: boilerplate code c |
C :: c static |
C :: postgres random select |
C :: graphics in c |
C :: strcasecmp in c |
C :: lldb set breakpoint function name |
C :: format bool c |
C :: find length of int number in c |
C :: why do we need return 0 in c? |
C :: char array to int c |
C :: c modify char array |
C :: c print to stderr |
C :: c string to int |
C :: convert int to char in c |
C :: bd number regex |
C :: memory layout in c |
C :: fibonacci series in c |
C :: delay in c programming for windows |
C :: rfid rc522 code |
C :: C program to input the month number and output the month name using switch statement |
C :: looping through an array in c |
C :: c size_t |
C :: %= in c |