1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27
|
#include <iostream.h>
int main()
{
int x[4][4]={{35 ,1, 6 ,26},{3, 32, 7, 21},{31, 9 ,2 ,22},{8, 28, 33 ,17}};
for(int i=0;i<4;i++)
{
for(int k=0;k<i;k++)
for(int j=0;j<4;j++)
if((i+j)<(4-1))
cout<<" "<<x[i][j];
cout<<endl;
}
}
|