A Program That Read Any Decimal Number & Display Equivalent Octal number.

#include<stdio.h>
#include<conio.h>
#include<iostream.h>

void main()
{
    int i,n;
    clrscr();
    cout<<"Enter any decimal number = ";
    cin>>n;
   
    cout<<"Equivalent octal number is : ";
    for(i=15;i>=0;i-=3)
    cout<<((n>>i)&7);

    getch();
}

///////////////////////////////////////////////////////////////////////////
Copy & paste this code in your TC & run, then you will get output.......
If you have any problem please comment below.........