Please teach as you produce the statute control this program. Thank you so abundant.
Write a C program to calculate the bulk and exterior area of a athwart buffet. Name your statute buffet.c.
(a) Ask the user to input each extent in the individuals of your choice
(b) Calculate the area and bulk and evidence each retort on its admit order concurrently with the individuals
(c) Evidence the retorts in or-laws notation with 3 decimal points
(d) your executable should be named buffet.x
Answer)
Statute :
#include<conio.h>
#include<stdio.h>
void deep()
{
int a,b,c;
float bulk,s;
char str[10];
clrscr();
printf(“Enter the individual of extents”);
gets(str);
printf(“n Enter the extents of athwart buffet in order l,b,h”);
scanf(“%d %d %d”,&a,&b,&c);
volume=a*b*c;
s = 2*a*b+2*b*c+2*a*c;
printf(“n Bulk of Athwart buffet is %.3f %s cube”,volume,str);
printf(“nn Exterior area of Athwart buffet is %.3f %s clear “,s,str);
getch();
}
Screenshots of Executed Statute :
Outputs :