Read and output Signed octal : Hex « Data Type « C / ANSI-C






Read and output Signed octal


#include <stdio.h>

int main(void)
{
  int i, j;

  scanf("%o%x", &i, &j);
  printf("%o %x", i, j);

  return 0;
}


  

           
       








Related examples in the same category

1.Reading hexadecimal and octal values
2.Output float and hexadecimal
3.Output Hex