Area of circle = 3.14*r*r

given: Area Of Circle= 3.14*r*r

  • Open TurboC++

>>file>> new

  • Coding

#include<stdio.h>
#include<conio.h>
{
            float r, area;
            clrscr();
            printf("Entre  The Value Of r :");
            scanf("%f",&r);
            area=3.14*r*r;
            printf("Area = %f ",area);
            getch();
}

  • save the programme in .c extention
  • Run programme
>>ctrl+f9

  • compile programme


>>alt+f9

  • output comes 
>>Entre The Value Of r :

Comments

Popular posts from this blog

Division ( / ) float