I wrte a simple program and whin I run it I doesn't stay up long enugh to see the results. Here is my small program. "What's wrong."
//
// Conversion - convert temperature from Celsius
// degree units into Fahrenheit degree
// units:
// Fahrenheit = Celsius * (212 - 32)/100 + 32
//
#include <stdio.h>
#include <iostream.h>
int main(int nNumberofArgs, char* pszArgs[])
{
// enter the temperature in Celsius
int nCelsius;
cout << "Enter the temperature in Celsius:";
cin >> nCelsius;
// calculate conversion factor for Celsius
// to Fahrenheit
int nFactor;
nFactor = 212 - 32;
// use conversion factor to convert Celsius
// into Fahrenheit values
int nFahrenheit;
nFahrenheit = nFactor * nCelsius/100 + 32;
// output the results
cout << "Fahrenheit value is:";
cout << nFahrenheit;
return 0;
}