Added decimal number in output, fitted everything into < 80 chars per

line again.
This commit is contained in:
hjp 1997-07-12 15:17:26 +00:00
parent 07952d405d
commit 76a7bb252f
1 changed files with 4 additions and 2 deletions

View File

@ -1,8 +1,10 @@
#include <stdio.h>
int main (int argc, char **argv) { int main (int argc, char **argv) {
int i; int i;
for (i = 0; i < 256; i++) { for (i = 0; i < 256; i++) {
printf ("%x %o %c\t", i, i, i); printf ("%x %d %o %c\t", i, i, i, i);
if (i % 8 == 7) printf ("\n"); if (i % 4 == 3) printf ("\n");
} }
return 0; return 0;
} }