Simple Arithmetic

Area Of Circle In C

Q. How to Find Area of Circle In C ? #include<stdio.h> #include<conio.h> #include<math.h> void main() { float r,area; clrscr(); printf(“Enter the radius of circle”); scanf(“%f”,&r); area=r*r; area=area*3.14; printf(“%0.2f”,area); getch(); } After Running Program  🙂    

Calculating Total and Percent By Using C

#include<stdio.h> #include<conio.h> void main () { float total,math,bio,phy,eng,comp,avg; clrscr(); printf(“Enter the value of your subject,math,bio,phy,eng,comp\n”); scanf(“%f%f%f%f%f”,&math,&bio,&phy,&eng,&comp); total=math+bio+phy+eng+comp; printf(“Your total number=%0.2f\n”,total); avg=total/5; printf(“Your percent=%0.2f %”,avg); getch(); } After Running Program 🙂