Find Perimeter of a Circle. Take the value of the radius from user.

#include<stdio.h>
#define pi 3.14

void main()
{
int r;
float p;
printf("Enter the value of radius: ");
scanf("%d", &r);
p=2*pi*r;
printf("Perimeter=%f",p);
}

   

Comments

Popular posts from this blog

Write a Program to Add two 3x3 Matrix using C

C program for Unit Conversion

Write a Program to Add two 5x5 Matrix using C