please can some one fix this code i try to do
ask the user to enter positive number if he enter negative number the computer ask him again to enter positive number and keep ask him until the user enter positive number when the user enter positive number the computer make summation for this number and out put result on screen for example if he enter 10 the result should be 55 (1+2+3+4+5+6+7+8+9+10)
can some one please check what wrong i did
thanks
ask the user to enter positive number if he enter negative number the computer ask him again to enter positive number and keep ask him until the user enter positive number when the user enter positive number the computer make summation for this number and out put result on screen for example if he enter 10 the result should be 55 (1+2+3+4+5+6+7+8+9+10)
can some one please check what wrong i did
thanks
Attachments
-
13.8 KB Views: 24
Last edited: