Write a Java program that: Ask user to enter the last two digits of the Student ID number and store it in a variable of type integer; Use a while loop to print all the positive odd numbers smaller...



Write a Java program that:



  • Ask user to enter the last two digits of the Student ID number and store it in a variable of type integer;

  • Use a while loop to print all the positive odd numbers smaller than the inputted number.

  • After the while loop, make a for loop to print all the positive even numbers smaller than the inputted



Note:



  1. Your answer should have the code as text, as well as a screenshot of the code with the output.



The inputted number should be the last two digits of your Student ID number.


ID is : 190058401



Jun 04, 2022
SOLUTION.PDF

Get Answer To This Question

Related Questions & Answers

More Questions »

Submit New Assignment

Copy and Paste Your Assignment Here