Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // computing a surface mark 1.cpp : Defines the entry point for the console application.
- //
- #include<stdio.h>
- int main (void)
- {int width, length, depth, surfacearea;
- width=23;
- length=12;
- depth=4;
- surfacearea=2*((width*length)+(width*depth)+(length*depth));
- printf("The surface area of a box with these dimentions of 23 by 12 by 4 is : %d\n",surfacearea);
- return 0;
- }
Add Comment
Please, Sign In to add comment