Write a program that loop 10 times. Each time the program will prompt the user for an Integer. If that number is Odd it will add the value to a running total for odd numbers and if that number is even then it will add the value to a running total for even number. Print out both sums when the ten numbers have been entered. Name the program p4.java.
Recently Asked Questions
- In a perfect competitive market , the market demand curve is illustrated by
- Choose the word which is most similar in meaning to the word given in bold as used in the passage . Prerequisites
- Alan bought 20 shares of Samuel Adams stock for himself to celebrate his favorite foreign beer company in 2000 . Alan 's purchase is an example of :