- Nov 19, 2004
- 2,654
- 0
- 71
I downloaded bloodshed, cause my moron teacher didnt give us anything to go by.
The first day of class and she hands out a paper that says
"write a program to calculate the volume of a box"
I cant get the program to work at all.
I named it a .c file and when i hit compile & run a blank screen comes up.
This is what i have so far.
CAN SOMEONE HELP ME!!!
/*Homework assignment 1 */
/*Compute the volume of a box*/
#include <stdio.h>
void main()
{
int length, width, height;
int volume;
scanf ("%d", &length),
scanf ("%d", &width),
scanf ("%d", &height),
volume= length * width * height;
printf("volume=%d \n ", volume);
}
The first day of class and she hands out a paper that says
"write a program to calculate the volume of a box"
I cant get the program to work at all.
I named it a .c file and when i hit compile & run a blank screen comes up.
This is what i have so far.
CAN SOMEONE HELP ME!!!
/*Homework assignment 1 */
/*Compute the volume of a box*/
#include <stdio.h>
void main()
{
int length, width, height;
int volume;
scanf ("%d", &length),
scanf ("%d", &width),
scanf ("%d", &height),
volume= length * width * height;
printf("volume=%d \n ", volume);
}