Monday, October 21, 2019

QBasic Programming:


To Display Product of Digits

CLS
INPUT "Enter any number"; N
P = 1
WHILE N <> 0
R = N  MOD 10
P = P * R
N = N \ 10
WEND
PRINT "Product of digits="; P
END

No comments:

Post a Comment

CLOUD COMPUTING: A CONTEMPORARY TECHNOLOGY

Today's world is highly dependent or reliant on computers and the internet than ever before. With the passage of time contemporary techn...