I have a code and from kladblok.txt there is a file with the following numbers:
1 2 3 4 5 6 7 8 9 10
1 2 3 4 5 6 7 8 9 10
1 2 3 4 5 6 7 8 9 10
1 2 3 4 5 6 7 8 9 10
1 2 3 4 5 6 7 8 9 10
1 2 3 4 5 6 7 8 9 10
1 2 3 4 5 6 7 8 9 10
1 2 3 4 5 6 7 8 9 10
1 2 3 4 5 6 7 8 9 10
1 2 3 4 5 6 7 8 9 10
How can i get the output :
1111111111
2222222222
etc..
Can someone help me?
If you just want to print it rotated 90 degrees, then just change the start/end/increment of your loops. Say you have
int data[10][10]in the original rotation.Then you want to start in the lower left and go up. Move right one space, start again at the bottom and go to the top, etc: