Function to convert to Qudadecimal (Id-3471)
A Quadadecimal number system is a hypothetical number system with base 14. The digits of the number system are 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, A, B, C, D. A decimal number ‘x’ can be converted to quadadecimal number by dividing it repeatedly by 14. The reminders obtained during division put together in reverse order form the quadadecimal equivalen of ‘x’. Decimal number 82 is converted to its quadadecimal equivalent (5C ) as follows:


Input Format

First line contains the number n, in decimal number system



Output Format
Print the quadadecimal equivalent of number, n
sol:
 #include<stdio.h>
  void main()
  {
    int b,n,i,r,digit,p,count=0;
    char a[100];
    scanf("%d",&n);
    b=14;
    p=n;
    do
    {   r=p%b;
        digit='0'+r;
        if(digit>'9')
            digit=digit+7;
        a[count]=digit;
        count++;
        p=p/b;}
    while(p!=0);
      for(i=count-1;i>=0;--i)
        printf("%c",a[i]);}