Convert decimal to octal

#include <stdio.h>

int main()
{
    int n;
    scanf("%d",&n);
    printf("%o",n);
    return 0;
}



OUTPUT:

1234
2322


58765
162615

Comments

Popular posts from this blog

C program to print the following Pattern

c++ program to print string along the diagonals of the matrix.

Kollywood Game