Tuesday, 25 August 2015

1 21 321 4321 54321

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

system("pause");
return  0;
}

No comments:

Post a Comment