I am a beginner in C++ and trying to learn it. I have a problem with this program.
#include <iostream>
using namespace std;
int main ()
{
int FirstNumber = 0 ; int SecondNumber = 0 ;
cout << " This program will help you multiply two numbers " << endl;
cout << "Enter the First Number: " ;
cin >> FirstNumber;
cout << "Enter the Second Number: ";
cin >> SecondNumber;
int Result = FirstNumber * SecondNumber;
cout << FirstNumber << " x " << SecondNumber ;
cout << Result << endl;
return 0;
}
Even though I typed cout to show the end result. It only shows until "FirstNumber" x "SecondNumber". What am I doing wrong?