Advertisement

C Programming


C programming
Equation writing:
Area of a circle.
#include<conio.h>
#include<stdio.h>
#include<math.h>
void main()
{clrscr();
int rad,area;
printf("enter number");
scanf("%d",&rad);
area=3.1416*pow(rad,2);
printf("%d",area);
getch();}

No comments:

Post a Comment

Please comment bellow. Share your knowledge