1.
Write a C program in QBASIC to find the total surface area of
a box.
#include<stdio.h>
#include<conio.h>
int main()
{
int l,b,h,a;
printf("Enter
length: ");
scanf("%d",
&l);
printf("Enter
breadth: ");
scanf("%d",
&b);
printf("Enter
height: ");
scanf("%d",
&h);
a=2*((l*b)+(b*h)+(h*l));
printf("Total
surface area of box= %d", a);
return 0;
}
No comments:
Post a Comment