Area of circle

Code for area of circle


#include<stdio.h>
#include<conio.h>
void main()
{
int r;
float a;
printf("Enter radius of circle");
scanf("%d",&r);
a=3.15*r*r;
printf("Area=%f",a);
getch();
}


Output



Comments

Popular posts from this blog

Code for pattern 6

Code for febonacci series

Code to check leap year