/*WRITE A PROGRAM PRODUCT OF TWO REAL NUMBERS*/
main()
{
float a=10.0,b=20.0,c;
c=a*b;
printf("%f",c);
}
/*AREA OF CIRCLE*/
main()
{
float pi=3.14,r=2.0,A;
A=pi*r*r;
printf("%f",A);
}
/*VOLUME OF THE SPHERE*/
main()
{
float r,pi,V;
r=2.0;
pi=3.14;
V=(4.0/3.0)*pi*r*r*r;
printf("%f",V);
}
/*VOLUME OF THE CYCLINDER*/
main()
{
float pi,r,h,c;
pi=3.14,r=2.0,h=3.0;
c=pi*r*r*h;
printf("%f",c);
}
/*AREA OF THE TRIANGLE*/
main()
{
float b,h,AT;
b=2.0,h=3.0;
AT=1.0/2*b*h;
printf("%f",AT);
}
/*TO FIND CENTIGRADE*/
main()
{
float f=62.0,c;
c=5.0/9.0*(f-32);
printf("%f",c);
}
/*PRODUCT OF TWO REAL NUMBERS*/
main()
{
float a,b,c;
scanf("%f%f",&a,&b);
c=a*b;
printf("%f",c);
}
/*AREA OF CIRCLE*/
main()
{
float pi=3.14,r,A;
scanf("%f",&r);
A=pi*r*r;
printf("%f",A);
}
/*VOLUME OF THE SPHERE*/
main()
{
float r,pi,V;
pi=3.14;
scanf("%f",&r);
V=(4.0/3.0)*pi*r*r*r;
printf("%f",V);
}
/*VOLUME OF THE CYCLINDER*/
main()
{
float pi,r,h,c;
pi=3.14;
scanf("%f%f",&r,&h);
c=pi*r*r*h;
printf("%f",c);
}
Hmm... Cool!!! B-)
ReplyDelete