HomeQBasic WAP TO INPUT ANY NUMBER AND FIND THE SUM OF ALL THE DIGITS USING SUB...END SUB Kingslayer sky November 07, 2021 1 Comments Facebook Twitter DECLARE SUB SUM(N)ClsInput "ENTER ANY NUMBER"; NCall SUM(N)EndSub SUM (N) While N <> 0 R = N Mod 10 S = S + R N = N / 10 Wend Print "THE SUM OF ALL THE DIGITS IS "; SEnd Sub Tags QBasic qbasic program Facebook Twitter
I will get good information for your article.
ReplyDeleteNoteburneri tunes
Post a Comment