Home Basic Loop Array string Function Pointer Contact STUDY

AHF    C    PROGRAM    SOLVING

Programming tips

Comment



Working with switch case



Specifer



" ; " after loop



Iterative statement




Calculate area of a circle



// AHF C PROGRAM SOLVING

//solving here basic type of programming problem

#include<stdio.h> #include<math.h> #define pf printf int main() { double radius,res=0.0; pf("Enter the radius of the circle: "); scanf("%lf",&radius); res=3.1416*radius*radius; pf("\nThe area of the circle is : %lf",res); return 0; }
OUTPUT:


© 2018 - All rights reserved