#include using namespace std; int main() { // Display th | Dasturlashga kirish
#include using namespace std;
int main() { // Display the question and answer choices cout << "What is the capital of France?" << endl; cout << "A. London" << endl; cout << "B. Paris" << endl; cout << "C. Berlin" << endl; cout << "D. Rome" << endl;
// Get the user's answer char userAnswer; cout << "Enter your answer (A, B, C, or D): "; cin >> userAnswer;
// Check if the answer is correct and display the result if (userAnswer == 'B' || userAnswer == 'b') { cout << "Correct!" << endl; } else { cout << "Incorrect. The correct answer is B." << endl; }