Created
September 13, 2018 16:10
-
-
Save LokeshKumarES/7bf72cbfc97d783647c7e3df33c3beff to your computer and use it in GitHub Desktop.
4-Write a C program to find the area of circle.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include<stdio.h> | |
#include<conio.h> | |
void main() | |
{ | |
int rad; | |
float pi=3.14, area; | |
printf("Enter the value of radius: "); | |
scanf("%d", &rad); | |
area=pi*rad*rad; | |
printf("The area of the circle is: %f", area); | |
getch(); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment