HI, im trying to write a quiz program, i don't understand why is my first part is not right...help plz!!
# include <iostream>
# include <cmath>
using namespace std;
int main()
{
char answer[8] = {'A', 'C', 'D', 'B', 'A', 'B', 'A', 'B'};
char input[8];
int correct=0, incorrect=0, position=0;
for (int i=1; i < 9; i++)
{
do
{
cout <<" In Your answer, Please enter A B C or D "<< i <<": \n";
cin >> input[position];
if (input[position] !='a' ||input[position] !='b' || input[position] !='c' || input[position] !='d')
cout << "please enter only a, b, c, or d:\n";
}while (input[position] != 'a' || input[position]!= 'b' || input[position] != 'c' || input[position] != 'd');
if (input [position]= answer[position])
correct = correct + 1;
else
incorrect = incorrect + 1;
position = position + 1;
}
system ("pause");
return 0;
}