+ 1
what can be the program TO print * ** *** **** using looping statements
Reply fastly as possible...........
2 Réponses
+ 3
for (int i = 0; i < 3; i++) {
for (int j = 0; j < (i + 1); j++) {
cout << "*";
}
cout << " ";
}
+ 2
int i =0;
while(i < 3)
{
int j =0;
while(j<(i+1))
{
cout<<"";
j++;
}
cout<<"";
i++;
}