rohidas

Hi I am Rohidas lande.I have teaching in C.D.jain college of commerce Shrirampur .I have Nine year in teaching Experience to teach various programming langauge,script languages,databases like Java,C,C++,php,python,html,css,javascript,mysql,oracle.

Area of circle and Circumference

 
  BACK
Question:- Write C Program to Find the Area and Circumference of a Circle.

 

Answer:-                   

                    #include<stdio.h>
                         int main()
                    {
                   int rad;
                      float PI = 3.14, area, ci;
                        printf("\nEnter radius of circle: ");
                         scanf("%d", &rad);



                          area = PI * rad * rad;
                         printf("\nArea of circle : %f ", area);

                            ci = 2 * PI * rad;
                           printf("\nCircumference : %f ", ci);

                  return 0;
              }


             

Post a Comment

0 Comments