Advertisement
Tahamina_Taha

conversion between Octal to Decimal

Aug 17th, 2019
117
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 0.28 KB | None | 0 0
  1. #include<stdio.h>
  2. int main()
  3. //conversion between Octal to Decimal
  4. {
  5.        int num;
  6.    printf("Enter any Octal number : \n");
  7.    scanf(" %o",&num);
  8.    printf("Decimal number: %d",num);//The dot in a decimal number is called a decimal point.
  9.    getch();
  10.     return 0;
  11.  
  12. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement