Question: Write a program to input Decimal number and convert it to Binary Number.
INPUT “Enter any number” ; n
t = 0
p = 1
WHILE n < > 0
r = n MOD 2
t = t + r * p
p = p * 10
n = n \ 2
WEND
PRINT “Binary Number = ” ; t
END
Sunday, 07 December, 2025
12:50 pm [NEPAL, GMT+5:45]
Coming Soon .... !
Question: Write a program to input Decimal number and convert it to Binary Number.
INPUT “Enter any number” ; n
t = 0
p = 1
WHILE n < > 0
r = n MOD 2
t = t + r * p
p = p * 10
n = n \ 2
WEND
PRINT “Binary Number = ” ; t
END
I am trying to develop a educational website which may be helpful for school students, college students, teachers, professor & many more………! If you have any queries, then you can contact me.
All Rights Reserved @ Rijan K.C. 2015 A.D. – 2025 A.D.