Home /
Expert Answers /
Computer Science /
nbsp-construct-a-program-in-c-to-print-out-stars-as-shown-in-figure-1-using-the-followi-pa303
(Solved):
Construct a program in \( C++ \) to print out stars as shown in Figure 1 using the followi ...
Construct a program in \( C++ \) to print out stars as shown in Figure 1 using the following three (3) repetition structures: (i). Counter controlled loop (for loop). (ii). Pre-test counter controlled loop. (iii). Post-test counter controlled loop. \( [45 / 100] \) SULIT
Solution:- d) I ) Counter controlled loop:- Code:- #include using namespace std; int main() { int n; cout << "Enter number of rows: "; cin >> n; for(int i