You have to 2 ints from the user( a and b) & print their sum on the console. However, sums in the range 10..19 inclusive, are forbidden, so in that case just print 20. Use the Java Programming language.

EBK JAVA PROGRAMMING
9th Edition
ISBN:9781337671385
Author:FARRELL
Publisher:FARRELL
Chapter6: Looping
Section: Chapter Questions
Problem 14PE
icon
Related questions
Question
You have to 2 ints from the user( a and b) & print their sum on the console. However, sums in the range 10..19
inclusive, are forbidden, so in that case just print 20.
Use the Java Programming language.
Transcribed Image Text:You have to 2 ints from the user( a and b) & print their sum on the console. However, sums in the range 10..19 inclusive, are forbidden, so in that case just print 20. Use the Java Programming language.
Expert Solution
steps

Step by step

Solved in 2 steps with 1 images

Blurred answer
Knowledge Booster
Mathematical functions
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.
Similar questions
  • SEE MORE QUESTIONS
Recommended textbooks for you
EBK JAVA PROGRAMMING
EBK JAVA PROGRAMMING
Computer Science
ISBN:
9781337671385
Author:
FARRELL
Publisher:
CENGAGE LEARNING - CONSIGNMENT