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);


Edited by SoulofchaOs

3 Years
Discussion Span
Last Post by tinstaafl

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.

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

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

This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.