- 1
Write a program that will ask the user a question with four possible answers. The question should be asked 10 times and after al
what is solution.
3 Answers
0
Using for loop write a JAVA program with the helping messages that accepts 10 integer values ââfrom the user and do the following tasks I. Extract and print the maximum odd number. 2. Extract and print the minimum even number. 3. Calculate and print the Average of the entered numbers.
0
Complete program
- 1
for(i=0; i<10; ++i)
{
cout <<"question\nAnswer1\nAnswer2.......";
cin >>a;
if (a=='C') //for example C is te correct answer
cout << "correct";
else
cout << "wrong answer";
}