Skip to content

Commit

Permalink
Add files via upload
Browse files Browse the repository at this point in the history
  • Loading branch information
olivemideva authored Feb 17, 2022
1 parent 84c62fb commit 98bec65
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 0 deletions.
Binary file added 0x00-map_your_mind/2-running_sum.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
14 changes: 14 additions & 0 deletions 0x00-map_your_mind/2-running_sum.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
START
prmpt the user to input a number that is input n
set int n to 0

create a while loop that checks if the number is positive and if it is it adds the number to the sum
while n > 0 do:
sum = sum + n

end while

output sum

END

0 comments on commit 98bec65

Please sign in to comment.