i have dev 4.9.9.1...i will create a win 32 console application.. write some code omething basic like...
//REMAIN.CPP
#include <iostream.h> //necessary for cin and cout commands
int main()
{
int dividend, divisor;
//get the dividend and divisor from the user
cout << "enter the dividend ";
cin >> dividend;
cout << "enter the divisor ";
cin >> divisor;
//output the qoutient and the remainder.
cout << "the qoutient is " << dividend/divisor;
cout << "with a remainder of " << dividend % divisor << '\n';
return 0;
}
the problem is after i (the user) fills in the dividend and divsor the program doesnt post the conclusion of the code....in fact, the console just closes before i can figure out whats up. i read what the warning says at the bottom of the compiler. it says.
"[warning] no new line at the end of file."
please assist. :(