problem with long integer multiplication

I am trying to multiply two user input numbers ranging from to 18, but the problem is that i cannot use long int, or string to take the input. I am basically stuck with this. I tried to take input in int arrays and than multiply the, but its going no where. So it will be great if someone can help.
Somehow I don't understand your problem. If all you need is to get the numbers and multiply them it's easy to do. No need for array string or long int. OR do you need to do sth. else ??????

1
2
3
4
5
6
7
8
9
10
11
12
13
14
int main ()
{
  int num1 = 0, num2 = 0;

  cout << "Please enter first number: ";
  cin >> num1;
  cout << "\nPlease enter second number: ";
  cin >> num2;

  cout << "\nResult: " << num1 * num2 << "\n\n";

  system ("pause");
  return 0;
}
Topic archived. No new replies allowed.