Monday, October 14, 2019

To display the sum of digits

                                  WAP to display the sum of digits
CLS
INPUT"Enter the digit";n
WHILE n< >o
R=N MOD 10
S= S+R
N=N\10
WEND
PRINT"Sum of digits";S
END

No comments:

Post a Comment

              5  days and 4 night Educational Tour We travel not to escape life but for life not to escape us . O ur school organized educ...