#include <stdio.h>
#include <stdlib.h>
#include <math.h>
float output()
{
float l, w, h, surface_area;
printf("Enter the length of the right rectangular prism:-\n");
scanf("%f", &l);
printf("Enter the width of the right rectangular prism:-\n");
scanf("%f", &w);
printf("Enter the height of the right rectangular prism:-\n");
scanf("%f", &h);
surface_area = 2*(w*l + l*h + h*w);
return surface_area;
}
float main()
{
system("cls");
float dis;
dis = output();
printf("Surface area of right rectangular prism is:- %f", dis);
return 0;
}
//........Coded by YASH ALLAPURIA
#ENJOY CODING
Post a Comment
FOR ANY DOUBTS AND ERRORS FEEL FREE TO ASK. YOUR DOUBTS WILL BE ADDRESSED ASAP