Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include<stdio.h>
- int main()
- //conversion between decimal and octal
- {
- int num;
- printf("Enter any Decimal number : \n");
- scanf(" %d",&num);
- printf("Octal number: %o",num);/*The octal numeral system, or oct for short,
- is the base-8 number system, and uses the digits 0 to 7.*/
- getch();
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement