Ask Question

Name:
Title:
Your Question:

Answer Question

Name:
Your Answer:
User Submitted Source Code!


Description:
  1
Language: C/C++
Code:
#include <stdio.h>
 
int main()
 
{
     float H;
     float W;
     float L;
     float V;
     char finish;
 
     printf( "please enter the width of the box"); 
     scanf( "%fn" , &W);
     printf("please enter the height of the box"); 
     scanf( "%fn" , &H);
      printf( "please enter the length of the box"); 
     scanf( "%fn" , &L);
     V = H*W*L;
     printf( "The volume of the box is %f cubic units\n", V );
     getchar();
     printf( "enter to exit the program\n"); 
     scanf( "%c" , &finish );
     return 0;
}
          
          
          
          
          
          
          
          
          
          
Comments: