Advertisement
Tahamina_Taha

conversion between decimal and octal

Aug 17th, 2019
129
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 0.32 KB | None | 0 0
  1. #include<stdio.h>
  2. int main()
  3. //conversion between decimal and octal
  4. {
  5.  
  6.    int num;
  7.    printf("Enter any Decimal number : \n");
  8.    scanf(" %d",&num);
  9.    printf("Octal number: %o",num);/*The octal numeral system, or oct for short,
  10. is the base-8 number system, and uses the digits 0 to 7.*/
  11.    getch();
  12.     return 0;
  13.  
  14. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement