I keep on getting one error when I compile this. I can't figure out what is wrong with it. Please help.
//Write a program that asks the user to enter two integers.
//The program should divide the first integer by the second and then display the resulting quotient and remainder.
#include <iostream.h>
//using namespace std;
int main()
{
//Declare the variables
int il, i2, quotient, remainder;
// Obtain the data from the user
cout<<"Input an integer followed by a return: ";
cin>>i1;
cout<<"Input an integer followed by a return: ";
cin>>i2;
// Do the arithmetic
quotient= i1/i2;
remainder=i1 % i2;
// Output the results
cout<<"\nThe quotient of " << i1 << " and "<< i2 <<"is"<< i1/i2;
cin>>il;
cout<<"The quotient of " << i1 << " and "<< i2 <<"is"<< i1/i2;
cin>>i2;
cout<<"\nThe remainder when "<<i1<<" is divided by "<<i2<<"is"<< remainder;
return 0;
}
error C2065: 'i1' : undeclared identifier
Error executing cl.exe.