Skip to content

Instantly share code, notes, and snippets.

@LokeshKumarES
Created September 13, 2018 16:10
Show Gist options
  • Save LokeshKumarES/7bf72cbfc97d783647c7e3df33c3beff to your computer and use it in GitHub Desktop.
Save LokeshKumarES/7bf72cbfc97d783647c7e3df33c3beff to your computer and use it in GitHub Desktop.
4-Write a C program to find the area of circle.
#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