I keep getting an eroor message. The error message is error C2065: 'endl' : undeclared identifier
#include
#include
using std::cout;
using std::cin;
int main()
{
int num1, num2, Multiple;
cout << "Enter two numbers and i will tell u if the\n";
cout << "first is a multiple of the second number:\n";
cin >> num1 >> num2;
Multiple = num2 % num1;
if (Multiple == 0)
cout << "\nThe first number is a multiple of the second.\n\n";
if (Multiple != 0)
cout << "\nThe first number is not a multiple of the second.\n\n";
return 0;
}
2007-10-07
11:07:17
·
6 answers
·
asked by
Anonymous
in
Computers & Internet
➔ Programming & Design
I am still getting the error C2065: 'endl' : undeclared identifier
2007-10-07
11:34:30 ·
update #1