Question: java code please Problem #2: (35 pts) Write a program that reads from the user two integers and displays the number of digits of each

 java code please Problem #2: (35 pts) Write a program that

java code please

Problem #2: (35 pts) Write a program that reads from the user two integers and displays the number of digits of each integer and a message stating whether the first integer has more digits, less digits, or same number of digits as the second integer. If the number is less than zero, the program should display an error message. Sample Run 1: Hello, Kindly enter two integers: 83456 3433 Tanks, 83456 has 5 digits but 3433 has 4 digits And: 83456 has more digits than 3433 Sample Run 2: Hello, Kindly enter two integers: 238 882 Tanks, 238 has 3 digits but 882 has 3 digits And: 238 has the same number of digits as 882 Sample Run 3: Hello, Kindly enter two integers: 56 993 Tanks, 56 has 2 digits but 993 has 3 digits And: 56 has less digits than 993

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!