Why won't this run!?
#include <iostream>
using namespace std;
int main ()
{
int num;
cout << "enter a number between 1-10\n";
cin >> num;
if(num < 1) || (num >11)
{
cout << "Please enter a number 1-10\n";
}
else
{
cout << "1 x " << num << " = " << num*1 <<endl ;
cout << "2 x " << num << " = " << num*2 <<endl ;
cout << "3 x " << num << " = " << num*3 <<endl ;
cout << "4 x " << num << " = " << num*4 <<endl ;
cout << "5 x " << num << " = " << num*5 <<endl ;
cout << "6 x " << num << " = " << num*6 <<endl ;
cout << "7 x " << num << " = " << num*7 <<endl ;
cout << "8 x " << num << " = " << num*8 <<endl ;
cout << "9 x " << num << " = " << num*9 <<endl ;
cout << "10 x " << num << " = " << num*10 <<endl ;
}
return 0;
}
i get a primary-expression error for the || :(
you.are.the.man.
thankyou