Write a C program for Volume and Surface Area of a Cube
Program:-
#include <stdio.h>
#include <conio.h>
void main()
{
float V, a, S;
clrscr();
printf("Enter the value of a");
scanf("%f",&a);
V=a*a*a;
S=6*a*a;
S=6*a*a;
printf("%f%f", V, S);
getch();
}
Output:-
input:-
Enter the value of a
r=?
Enter the value of a
r=?
output:-
...
...
0 comments:
Post a Comment