Thursday, 8 January 2015

C plus plus Pattern # 12

Leave a Comment

Code:

#include<iostream>
using namespace std;
void main()
{
for(int i = 1;i<=5;i++)
{
for(int j = 1;j<=i;j++)
{
cout<<j;
}
cout<<endl;
}
}

Output:


If You Enjoyed This, Take 5 Seconds To Share It

0 Questions: