+ 1

what can be the program TO print * ** *** **** using looping statements

Reply fastly as possible...........

24th Oct 2016, 3:54 PM
manish chouhan
manish chouhan - avatar
2 Respuestas
+ 3
for (int i = 0; i < 3; i++) { for (int j = 0; j < (i + 1); j++) { cout << "*"; } cout << " "; }
24th Oct 2016, 4:20 PM
Zeke Williams
Zeke Williams - avatar
+ 2
int i =0; while(i < 3) { int j =0; while(j<(i+1)) { cout<<""; j++; } cout<<""; i++; }
24th Oct 2016, 5:43 PM
Osvaldo López Ruiz
Osvaldo López Ruiz - avatar