Skip to main content
Search
Search This Blog
Adsense
CFETCH
Share
Get link
Facebook
X
Pinterest
Email
Other Apps
Labels
C Programs
February 13, 2013
A C Program to find area of sphere.
#include<stdio.h>
#include<conio.h>
#include<math.h>
#define pi 3.14
void main()
{
int r,a;
clrscr();
printf("Enter radius:");
scanf("%d",&r);
a=(4/3)*pi*r*r*r;
printf("Area of sphere:%d",a);
getch();
}
Comments
Popular Posts
January 17, 2014
C program to draw ellipse using Midpoint Ellipse Algorithm.
January 10, 2014
Draw a Line using Equation y=mx+c in C
Comments
Post a Comment