Sunday, October 7, 2012

Java Exercise #15: Subtraction Quiz

This program is for a first grader to practice subtraction.

Exercise: write a program that randomly two single-digit integers, num1 and num2 where num1 >= num2. It then requests the user to enter the difference

What is 3 - 0? 4
Your answer is wrong.
3 - 0 should be 3
What is 8 - 2? 6
You are correct!

Download Code: Subtraction Quiz

No comments:

Post a Comment