Untitled

mail@pastecode.io avatar
unknown
plain_text
8 months ago
1.1 kB
1
Indexable
Never
#include<stdio.h>

int main()
{

printf("---------------------------------------\n");
printf("| decimal   |  octal  |  Hexadecimal  |\n");
printf("---------------------------------------\n");
printf("|      0    |    0    |       0       |\n");
printf("|      1    |    1    |       1       |\n");
printf("|      2    |    2    |       2       |\n");
printf("|      3    |    3    |       3       |\n");
printf("|      4    |    4    |       4       |\n");
printf("|      5    |    5    |       5       |\n");
printf("|      6    |    6    |       6       |\n");
printf("|      7    |    7    |       7       |\n");
printf("|      8    |   10    |       8       |\n");
printf("|      9    |   11    |       9       |\n");
printf("|     10    |   12    |       A       |\n");
printf("|     11    |   13    |       B       |\n");
printf("|     12    |   14    |       C       |\n");
printf("|     13    |   15    |       D       |\n");
printf("|     14    |   16    |       E       |\n");
printf("|     15    |   17    |       F       |\n");
printf("---------------------------------------\n");
 return 0;
}
Leave a Comment