C LANGUAGE - FINDING AREA OF CIRCLE

// Find area of circle using #define #include<stdio.h> #include<conio.h> #define PI 3.142 float main() { float r,a; printf("enter the radius:\n"); scanf("%f",&r); a=PI*r*r; printf("Area of Circle is %.2f",a); return 0; }
Note: Click on copy button to copy the given code and you can paste it in any online compiler to see the result, IF YOU ARE A MOBILE USER THEN DOWNLOAD "CODING C"(Free App) COMPILER FROM GOOGLE PLAY STORE.