Get Even More Visitors To Your Blog, Upgrade To A Business Listing >>

Conversion from Decimal To OCTAL Using C Program

#include
int main(){
int i=0,j=0,rem=0,a[10],b[10];
long int num;
printf("\nEnter a number :");
scanf("%ld",&num);
while(num){
if(num=0;i--)
b[rem++]=a[i];
printf("\nOctal equivalent :");
for(j=0;j printf("%d",b[j]);
return 0;
}



This post first appeared on ReaL TricKs, please read the originial post: here

Share the post

Conversion from Decimal To OCTAL Using C Program

×

Subscribe to Real Tricks

Get updates delivered right to your inbox!

Thank you for your subscription

×