0
What is the output of the following code?
#include <stdio.h>
int main() {
for (int i = 1; i <= 3; i++) {
for (int j = 1; j <= i; j++) {
printf("*");
}
printf("\n");
}
return 0;
}- A* ** ***
- B*** ** *
- C*** *** ***
- DCompilation Error
Correct answer: A