Selvan was playing with the a object of random size for stress relief. Selvan knows that the Length, Width, and Height of the object. But he would like to know the surface area of the object he is playing with. Can you help him in finding it?
#include <stdio.h>
int main()
{
int length,width,height,surfacearea;
scanf("%d%d%d",&length,&width,&height);
surfacearea=2*((width*length)+(length*height)+(height*width));
printf("%d",surfacearea);
return 0;
}
Comments
Post a Comment