Important MCQ

How many times does * print? for (int i = 1; i <= 3; i++) for (int j = 1; j <= 3; j++) cout << "*";

Q.How many times does * print? for (int i = 1; i <= 3; i++) for (int j = 1; j <= 3; j++) cout << "*";

A) 3
B) 6
C) 9
D) 12
Correct Answer:
Option C
Detailed Explanation:
3 x 3