Wrong CODE?

What is wrong with this code i always get an error while debugging it in visual c++ it can't read question 4 PLEASE HELP

#include <iostream>

using namespace std;

int main() {
int Choice;
cout << "Hello, welcome to shaun's elimination Jap quiz on masu and mashou." << endl;
cout << "You will be confronted with a series of questions answer right and you may" << endl;
cout << "continue, wrong then you will be sent out of the quiz." << endl;
cout << "Section 1 verb endings" << endl;
cout << "Question 1." << endl;
cout << "What is the verb ending for eat?" << endl;
cout << "press 1 to select tabemasu or select 2 to answer yomimasu." << endl;
scanf( "%d", &Choice );

if( Choice == 1 )
{
cout << "Correct!" << endl;
system("pause");
}
else if(Choice == 2 )
{
cout << "INCORRECT!" << endl;
system("pause");
return(0);
}
else
{
cout << "Type in one of the numbers next time." << endl;
system("pause");
return(0);
}
cout << "Question 2." << endl;
cout << "What does shimas mean?" << endl;
cout << "press 1 for lets do, press 2 for read, press 3 for do." << endl;
scanf( "%d", &Choice );

if( Choice == 1 )
{
cout << "INCORECT!" << endl;
system("pause");
return(0);
}
else if(Choice == 2 )
{
cout << "INCORRECT!" << endl;
system("pause");
return(0);
}
else if(Choice == 3 )
{
cout << "Correct!" << endl;
system("pause");
}
else
{
cout << "Type in one of the numbers next time." << endl;
system("pause");
return(0);
}
cout << "Question 3." << endl;
cout << "What does this sentance mean, tenisu o shimashou?" << endl;
cout << "press 1 for lets watch TV, press 2 for lets play tennis, press 3 for" << endl;
cout << "lets watch tennis?" << endl;
scanf( "%d", &Choice );

if( Choice == 1 )
{
cout << "INCORRECT!" << endl;
system("pause");
return(0);
}
else if( Choice == 2 )
{
cout << "Correct!" << endl;
system("pause");
}
else if( Choice == 3 )
{
cout << "INCORRECT!" << endl;
system("pause");
return(0);
}
else
{
cout << "Type in one of the numbers next time." << endl;
system("pause");
return(0);
}
cout << "Good job you have hit three in a row!" << endl;
cout << "Question 4." << endl;
cout << "How do i say i will drink water tommorow?" << endl;
cout << "press 1 for bokuwa ashita mizu o nomimasu, press 2 for bokuwa atoude mizu o" << endl;
cout << "nomimasu, press 3 for bokuwa atoude wata o yomimasu, press 4 for bokuwa ashita" << endl;
cout << "wata o nomimasu." << endl;
scanf( "%d", &Choice );

if( Choice == 1 )
{
cout << "Correct!" << endl;
system("pause");
}
else if( Choice == 2 )
{
cout << "INCORRECT!" << endl;
system("pause");
return(0);
}
else if( Choice == 3 )
{
cout << "INCORRECT!" << endl;
system("pause");
return(0);
}
else if( Choice == 4 )
{
cout << "INCORRECT!" << endl;
system("pause");
return(0);
}
else
{
cout << "Type in one of the numbers next time." << endl;
system("pause");
return(0);
}
system("pause");
return(0);
}
i always get an error

Such as?

Also, you have a lot of code duplication. You should get rid of it.
Avoid duplicate code and use switch case statement instead of if else ...
you should probably use cin with cout or printf if you want to use scanf
tested it with cin instead and it works.
too much if--else , u can fix it more simple
Topic archived. No new replies allowed.