Question: Please submit problem 3 for the lab assignment. (screenshot and code). in Java Problem 3: Ask user to input two integer parameters a , and
Please submit problem 3 for the lab assignment. (screenshot and code).
in Java
Problem 3:
- Ask user to input two integer parameters a, and b.
- Assume that a is a positive integer (>0) and b is single-digit numbers from 0-9 inclusive.
- Your program should print:
- true if a contains b at among its digits, and
- false otherwise.
- For example when a is 3415, b is 1, should print true.
- (Note: You can not use a String to solve this problem. We will learn Strings later)
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
