Guest User

Untitled

a guest
Jan 24th, 2018
66
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.39 KB | None | 0 0
  1. // computing a surface mark 1.cpp : Defines the entry point for the console application.
  2. //
  3.  
  4. #include<stdio.h>
  5.  
  6.  
  7. int main (void)
  8. {int width, length, depth, surfacearea;
  9.  
  10. width=23;
  11.  
  12. length=12;
  13.  
  14. depth=4;
  15.  
  16. surfacearea=2*((width*length)+(width*depth)+(length*depth));
  17.  
  18. printf("The surface area of a box with these dimentions of 23 by 12 by 4 is : %d\n",surfacearea);
  19. return 0;
  20. }
Add Comment
Please, Sign In to add comment