0

How to print a specific pattern?

If want the output * ** ***

7th Jan 2017, 7:31 AM
Ravi Yadav
1 Resposta
+ 1
#include <iostream> using namespace std; int main() { for(int i=0;i<=5;i++){ for(int j=0;j<=i;j++) { cout<<"*" ; } cout<<endl; } return 0; }
7th Jan 2017, 8:18 AM
ASNM
ASNM - avatar