Facebook
From Gruff Gibbon, 3 Years ago, written in Plain Text.
This paste is a reply to Re: Re: Re: Re: Re: Untitled from Diminutive Tapir - view diff
Embed
Download Paste or View Raw
Hits: 54
  1. Get integer from user
  2. Read and save integer as num
  3. While num !=-99
  4. Set odd_count=0
  5. Set even_count=0
  6. If num%2=0
  7. Print "the number is even"
  8. increment even_count
  9. Else IF num%2!=0
  10. Print "the number is odd"
  11. increment odd_count
  12. Else
  13. print "the number is 0"
  14. End IF
  15.  
  16.