Psst.. new poll here.
Psst.. new forums here.
Microsoft is blocking us again (TY IP Reputation!) so just use oauth login instead. :)
Paste
Pasted as C++ by khaled sherif ( 12 years ago )
#include <iostream>
using namespace std;
int main ()
{
int m,e,cases;
cin>>cases;
for (int i=0;i<cases; i++)
{
cin>>m>>e;
for (int j=0;j<e; j++)
{
cout<<endl;
for (int k=1;k<=m; k++)
{
for (int l = 1; l <= k; l++)
{
cout<<k;
}
}
for (int k=m-1;k>=1;k--)
{
for (int l = 1; l <= k; l++)
{
cout<<k;
}
cout<<endl;
}
}
}
return 0;
}
Revise this Paste