Tuesday, 25 August 2020

HOW TO WRITE AREA OF CIRCLE PROGRAM IN C?

THE FOLLOWING PROGRAM EXPLAINS ABOUT AREA OF CIRCLE:

#include<stdio.h>
#include<conio.h>
void main()
float a,r; //to get accurate results.
clrscr();
printf("Enter the radius of circle\n");
scanf("%f",&r);
a=3.14*r*r;
printf("Area of circle=%f",a);
getch();
}

IN OUR NEXT POST I WILL EXPLAIN ABOUT AREA OF TRIANGLE.

    

No comments:

Post a Comment

C Programming

What is DBMS in brief?

A Database Management System (DBMS) is a software suite designed to efficiently manage, organize, store, manipulate, and retrieve data. It a...