Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <stdio.h>
- int
- main (int ac, char *av[])
- {
- int oct = 0230, i;
- for (i = 0; i < 8; i++)
- if ((oct + i) % 16 == 9)
- break;
- if (i < 8)
- printf("result x = oct: %o hex: %x dec: %dn",
- oct + i, oct + i, oct + i);
- else
- puts("No such number");
- return 0;
- }
- avp@wubu:hashcode$ ./a.out
- result x = oct: 231 hex: 99 dec: 153
- avp@wubu:hashcode$
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement