fork download
  1. // C code
  2. // This house has four rooms: entrance, bedroom, dining and bathroom
  3. //It will total up the Square Footage of all rooms
  4. // Developer: Sabrina Smith
  5. // Date: Aug 28, 2015
  6. #include <stdio.h>
  7. int main ()
  8. {
  9. /* variable definition: */
  10. int a,b,c,d,e,f,g,h,i;
  11. /* variable initialization */
  12. a = 16;
  13. b = 12;
  14. c = 8;
  15. d = 6;
  16. e = 8;
  17. f = 6;
  18. g = 4;
  19. h = 2;
  20. i = (a*b)+(c*d)+(e*f)+(g*h);
  21. printf( "Value of i = %d\n", i);
  22. return 0;
  23. }
  24.  
Success #stdin #stdout 0s 2112KB
stdin
Standard input is empty
stdout
Value of i = 296