My lecturer is always telling us that we should space out each line using the tab key. I don't really understand what he means. He wants us to make it neater. Is this what he's looking for?
EG
EG
Code:
/*Write a program to compute:
(a) the volume
(b) the surface area of a box with a height of 10cms, a length of 11.5 cm and a width of 2.5 cm.*/
#include <stdio.h>
int main()
{
float height, length, width, volume, surfacearea ;
printf ("Enter the height: ") ;
scanf ("%f", &height) ;
printf ("Enter the length: ") ;
scanf ("%f", &length) ;
printf ("Enter the width: ") ;
scanf ("%f", &width) ;
volume = length*width*height ;
surfacearea = 2*(length*width+length*height+width*height) ;
printf ("The volume of the box is %.2f and the surface area of the box is %2.f \n", volume, surfacearea) ;
return 0 ;
}
