Mega Code Archive

 
Categories / C / Code Snippets
 

Read and output Signed octal

#include <stdio.h> int main(void) { int k, j; scanf("%o%x", &k, &j); printf("%o %x", k, j); return 0; }