jituTechnology

jituTechnology

Write a program to read the radius of a sphere and compute its surface area and the volume

/*A program to read the radius of a sphere and compute its surface area and the volume
programmed by:
Name: Jitendra Kumar Yadav
Roll No: 16
date: 7 Jan 2011 */
#include <stdio.h>
#include <conio.h>
#include <math.h>
void main()
{
float r,SA,V;
printf(“Enter the radius of a sphere: “);
scanf(“%f”,&r);
SA=(4*(22*1.0)/7*pow(r,2));
V=((4*1.0)/3*(22*1.0)/7*pow(r,3));
printf(“The surface area of a sphere is %f”,SA);
printf(“\nThe Volume of a sphere is %f”,V);
getch();
}

No comments yet.

Add a comment

This site uses Akismet to reduce spam. Learn how your comment data is processed.



Connect with Me

GPO 8973 NPC 541; Kathmandu Nepal
Phone: +977 9851236800

Calendar

January 2026
S M T W T F S
 123
45678910
11121314151617
18192021222324
25262728293031