Sum of Even & Odd numbers

Input : A number

Output : The sum of even and odd numbers

Logic : I used two variables to keep track of even or odd numbers



Comments

Popular posts from this blog

Maximum and minimum of three numbers