Friday, April 15, 2022

Area of a circle in C

#include<stdio.h>

#define pi 3.1416

int main()

{

       //Area of a circle = pi r*r

       float          radius, area;

       printf("Enter the radius value :  ");

       scanf("%f ", &radius);

 

       area = pi*radius*radius;

       printf("Area of a circle is: %.2f",area);

       return (0);

}

No comments:

Post a Comment

How to install and configure Oracle Apex 24.1 with ORDS 22, Tomcat 9 and Jasper Report 7 on Oracle Linux 8.10

#########################Install Oracle  APEX 24.1################################ ----------------------------------------------------...