# Program to convert decimal to octal using while loop sem=1octal=0print("Enter the Decimal Number:")number=int(input())while(number !=0):      octal=octal+(number%8)*sem      number=number//8      sem=int(sem*10)print("Octal Number is ",octal)