Page 1 of 1

How many asterisks will be output by the following code? for (int i = 1; i < n; ++i) { for (int j = 1; j < m; ++j) { cou

Posted: Mon Jun 06, 2022 2:12 pm
by answerhappygod
How many asterisks will be output by the following code? for
(int i = 1; i < n; ++i) { for (int j = 1; j < m; ++j) {
cout << "*"; }
}
a. n
b. m
c. n + m
d.n*m
e.(n-1)+(m-1)
f.(n-1)*(m-1)