Program 2: Write a program which does the following: 1. Takes 2 int data type inputs from the user, say in num1 and num2. 2. And print true if both the numbers are between 11 and 99 (inclusive), or if both the numbers are between 99 and 199 (inclusive). Else print false. 3. But there is a restriction: This logic for point# 2 above should be done inside the println() statement. So everything should be done inside this: System.out.println(... write logic here...); //hint: use logical operators

C++ for Engineers and Scientists
4th Edition
ISBN:9781133187844
Author:Bronson, Gary J.
Publisher:Bronson, Gary J.
Chapter5: Repetition Statements
Section5.6: Nested Loops
Problem 2E
icon
Related questions
Question

Question is attatched. Thank you!

Program 2:
Write a program which does the following:
1. Takes 2 int data type inputs from the user, say in num1 and num2.
2. And print true if both the numbers are between 11 and 99 (inclusive), or if both the numbers
are between 99 and 199 (inclusive). Else print false.
3. But there is a restriction:
This logic for point# 2 above should be done inside the printlIn() statement. So everything
should be done inside this:
System.out.println(... write logic here...); //hint: use logical
operators
Transcribed Image Text:Program 2: Write a program which does the following: 1. Takes 2 int data type inputs from the user, say in num1 and num2. 2. And print true if both the numbers are between 11 and 99 (inclusive), or if both the numbers are between 99 and 199 (inclusive). Else print false. 3. But there is a restriction: This logic for point# 2 above should be done inside the printlIn() statement. So everything should be done inside this: System.out.println(... write logic here...); //hint: use logical operators
Expert Solution
steps

Step by step

Solved in 2 steps with 1 images

Blurred answer
Knowledge Booster
Project Roles
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
C++ for Engineers and Scientists
C++ for Engineers and Scientists
Computer Science
ISBN:
9781133187844
Author:
Bronson, Gary J.
Publisher:
Course Technology Ptr