Twitter Feed Facebook Google Plus Youtube

Adsense responsive

Recent Post below header

Friday, 21 June 2013

C PROGRAM: TO CALCULATE CIRCUMFERENCE OF CIRCLE

CODING:
#include<conio.h>
#include<stdio.h>
#define PI 3.14
void main()
{
    float cm,r;
    clrscr();
    printf("Enter radius of circle: ");
    scanf("%f",&r);
    cm=2*PI*r;
    printf("\n\nCircumference of circle is %.2f",cm);
    getch();
}


coding c program
CODING
Click on images to view them correctly.

C Program Output
OUTPUT

For any query or suggestion please comment below...

No comments:

Post a comment