Moving along with the tutorial I was designing a program “To print Sum of n Numbers”. I did a slight change in the final print command with a desire to get a little crisp output, but the output is mismatched. Kindly correct my mistake.
Improper Output of WHILE LOOP
You ll need to print "the sum of sum and counter before you are updating the value of sum and counter. Otherwise it ll print the updated values only.