//Write a c program to calculate the area of circle using formatted input and output statement :

 //Write a c program to calculate the area of circle using formatted input and output statement using constant :



#include<stdio.h>

int main()

{

const float pi=3.14;

float radius,area;

printf("Enter the radius");

scanf("%f",&radius);

area=pi*radius*radius;

printf("the area of circle is %f",area);

}


Post a Comment

Please Select Embedded Mode To Show The Comment System.*

Previous Post Next Post