Skip to main content
Search
Search This Blog
"life is not a problem to be solved but a reality to be experienced"
Share
Get link
Facebook
X
Pinterest
Email
Other Apps
October 15, 2019
sum of digits(sub)
DECLARE SUB SUM (N)
CLS
INPUT "ENTER ANY NO";N
CALL SUM (N)
END
SUB SUM (N)
S=0
WHILE N<>0
R=N MOD 10
S=S+R
N=N\10
WEND
PRINT "SUM OF DIGIT =";S
END SUB
Comments
Popular Posts
May 18, 2019
cyber law
September 03, 2019
My father
Comments
Post a Comment