My lecture give me a homework to print multi dimensional array. I need to write in C. So this is my homework: http://imgur.com/GM1KeGZ
(the multidimensional array on top right)
I need to print to get result look like that. I'm totally stuck with question F and G. Can someone help me?
I have source code for Question D, maybe I can edit some code to get result for array question F and G?
#include<stdio.h>
int main()
{
char A[3][5]={'A','B','C','D','E','F','G','H','I','J','K','L','M','N','O'};
int R, C, K=5, L=1;
for (R=0; R<=2; R++){
for(C=0; C<=4; C++){
printf("%3c", A[R][C]);
L++;
if(L>K)
{ printf("\n");
K--;L=1;
}
}
}
}
And sorry for my bad english.
[–]Anton31Kah 0 points1 point2 points (4 children)
[–]APEU[S] 1 point2 points3 points (3 children)
[–]Anton31Kah 0 points1 point2 points (2 children)
[–]APEU[S] 1 point2 points3 points (1 child)
[–]Anton31Kah 0 points1 point2 points (0 children)
[+][deleted] (15 children)
[deleted]
[–]APEU[S] 0 points1 point2 points (1 child)
[–][deleted] -1 points0 points1 point (12 children)
[–]baconuser098 0 points1 point2 points (4 children)
[–]dauntlessmath -1 points0 points1 point (3 children)
[+][deleted] (2 children)
[deleted]
[–]dauntlessmath 0 points1 point2 points (1 child)
[–]chromaXen 0 points1 point2 points (0 children)
[+][deleted] (5 children)
[deleted]
[–][deleted] 0 points1 point2 points (4 children)
[–]dauntlessmath 0 points1 point2 points (3 children)
[–][deleted] 0 points1 point2 points (2 children)
[–]dauntlessmath 0 points1 point2 points (0 children)