After I clicked the 'Run' button in Netbeans, it will compile and run and then it will stop at this point :
Click Here

I will have to press any key on the keyboard then it will display the text, but it doesn't allow the user to enter any form of input.
Click Here

Code below, any guidance is helpful.

#include <stdio.h>
#include <stdlib.h>

int main(void) {

int height, length, width, volume, weight;

printf("Enter height of box: ");
scanf("%d", &height);
printf("Enter length of hon: ");
scanf("%d", &length);
printf("Enter width of bow; ");
scanf("%d", &width);
volume = height * length * width;
weight = (volume + 165) / 156;
printf("Volume Cubic Inches: %d\n", volume);
printf("dimensional weight (pounds): %d\n", weight);

return (0);

}

Recommended Answers

All 4 Replies

It might help if you include the version of Netbeans, C/C++ plugin and your compiler.

I followed the instructions in this link - Click Here all except step 14 and 15 as the link is broken for that step. However I did "verifying the installation" in step 16 and it worked.

Information:
Netbeans version 7.2.1
MinGW compiler
C/C++ plugin Version: 1.18.1.1

On a sidenote, this may be a Netbeans flaw from the information I found in this thread - Click Here

Using Code::Blocks with Cygwin GCC compiler your code seems to work fine.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.