I want a c program which ask for Hexadecimal number and gives output equivalent octal number. I use the code to convert int into octal using printf() function.
#include<stdio.h>
Void main(){
  int i;
  printf("Enter the Hax number: ");
  scanf("%x",&i);
  printf("Octal equivalent of number is %o",i);
}
 
     
     
    