#include <iostream>
#include <string>
using namespace std;
string name;
string answer1;
int A;
int B;
int C;
int main()
{
//This is the Users name
cout << "Hello, Please enter your name\n";
cin >> name;
cout << "Hello ";
cout << name;
cout << "\n";
//Quiz starts here below
cout << "Welcome to this Quiz, You will need to answer using\n";
cout << " A,B,C Only, Do not write the actuall answer\n";
system("PAUSE");
system("CLS");
cout << "#1: What year was World War 2 Officially over?\n";
cout << "A: July 4, 1939\n";
cout << "B: September 2, 1945\n";
cout << "C: May 14, 1942\n";
//------- answer below
cin >> answer1;
if (answer1 == B);
cout << "Correct, Well done";
else cout << "Wrong!, The correct answe is B";
}
Bookmarks