To
Display Sum of Digits
INPUT "Enter any number"; N
S = 0
WHILE N <> 0
R = N MOD 10
S = S + R
N = N \ 10
WEND
PRINT "Sum of digits="; S
END
Today's world is highly dependent or reliant on computers and the internet than ever before. With the passage of time contemporary techn...
No comments:
Post a Comment