User:Inge Hoonte/arduino2: Difference between revisions
Inge Hoonte (talk | contribs) (Created page with "#include "stdio.h" char pat[]="wow this is hard "; int i = 0; int j = 0; int main () { while (j < 13) { while (i < 16) { printf("%c %c\n", pat[i], pat[(i+j)%16]);...") |
Inge Hoonte (talk | contribs) No edit summary |
||
Line 1: | Line 1: | ||
#include "stdio.h" | #include "stdio.h" | ||
char pat[]="wow this is hard "; | char pat[]="wow this is hard "; | ||
int i = 0; | int i = 0; | ||
int j = 0; | int j = 0; | ||
int main () | int main () | ||
{ | { | ||
while (j < 13) | |||
{ | { | ||
while (i < 16) | while (i < 16) | ||
Line 17: | Line 17: | ||
j = j+1; | j = j+1; | ||
} | } | ||
} | } |
Revision as of 19:16, 8 November 2010
#include "stdio.h" char pat[]="wow this is hard "; int i = 0; int j = 0; int main () { while (j < 13)
{ while (i < 16) { printf("%c %c\n", pat[i], pat[(i+j)%16]); i = i+1; } i = 0; j = j+1; }
}