Write a program to print the following pattern

#include<iostream.h>
void main ()
{
for ( int i=1; i<=5;i++)
{
   for ( int j=1;j<=i;j++)
     {
        cout<<j;
      }
   cout<<'\n';
}
}

Comments

Popular posts from this blog

How to root?

Why you should root your phone?