Tags: circumference of the circle

C Program to calculate area and circumference of the circle

#include<stdio.h> void main() { float area, radius, circum; clrscr(); printf(“nnt ENTER THE RADIUS OF THE CIRCLE…:”); scanf(“%f”, &radius); area = 3.142 * radius * radius; circum = 2 * 3.142 * radius; printf(“nnt THE AREA OF THE CIRCLE IS…: %f”, area); printf(“nnt THE CIRCUMFERENCE OF THE CIRCLE IS…: %fn”, circum); getch(); }

Related Posts Plugin for WordPress, Blogger...Read More…