SOLVED
Here is my code when i try to run the program it ask me to type in my value for width. I enter a value and press enter. The program then goes to the next line and waits another value entry before proceeding to ask me for the height of the object. I don't know why it wont ask only a single time for the width.
Code:
// This program is intended to calculate the volume of a box
#include <stdio.h>
int main()
{
float height;
float width;
float length;
float volume;
char finish;
printf( "please enter the width of the box"); //this is the width
scanf( "%f\n" , &width);
printf("please enter the height of the box"); //this is the height of the box
scanf( "%f\n" , &height);
printf( "please enter the length of the box"); //this is the length
scanf( "%f\n" , &length);
volume = height*width*length; // this equation finds the volume
printf( "The volume of the box is %f cubic units\n", volume ); //final statment
getchar();
printf( "enter f to exit the program"); //exiting the program
scanf( "%c" , &finish );
return 0;
}