text: #include <stdio.h>
  #include <stdlib.h>
  int ex003(void){
      int iVal;
      printf("Please enter 8 bit (Octal): ");
      scanf_s("%o", &iVal);
      printf("Entered 8 bit (Octal); in decimal pattern (10):%d\n",iVal);
      printf("\n");
  
      printf("Please enter 10 bit (Octal): ");
      scanf_s("%d", &iVal);
      printf("Entered decimal; in octal pattern :%o\n",iVal);
      printf("\n");
  
      printf("Please enter 16 bit (Octal): ");
      scanf_s("%i", &iVal);
      printf("Entered 16 bit (hexadecimal); in decimal pattern :%d\n",iVal);
      printf("\n");
  
      printf("Please enter 10 bit (Octal): ");
      scanf_s("%d", &iVal);
      printf("Entered 10 bit (decimal); in hexadecimal pattern :%i\n",iVal);
      printf("\n");
  
      system("pause");
      return 0;
  }
  