Circumference of Circle in C programming language

     Circumference of Circle 



 



#include<stdio.h>

int main()

int radius;

float cir;

printf("Enter Radius of the Circle: ");

scanf("%d",&radius);

cir=2*3.14*radius;

printf("Circumference of the Circle: %.2f",cir);

 return 0; 

}


/* OUTPUT:

Enter Radius of the Circle : 5 Circumference of the Circle: 31.40 */








Comments

Popular posts from this blog

Basic Computer 🖥️💻 Organisation

Introduction of computer 🖥️🖥️🖱️