title: convert Hexadecimal number in Octal in c
body: <p>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.</p>
  
  <pre><code>#include&lt;stdio.h&gt;
  Void main(){
    int i;
    printf("Enter the Hax number: ");
    scanf("%x",&amp;i);
    printf("Octal equivalent of number is %o",i);
  }
  </code></pre>