Question: Write a programme that will read a number within the range of 1 to 10 from the user. Then, the programme will print all

Write a programme that will read a number within the range of

Write a programme that will read a number within the range of 1 to 10 from the user. Then, the programme will print all numbers from 1 to 10 excluding the number entered by the user. For instance, if the user input 5, then all numbers from 1 to 10 will be printed, except for number 5.

Step by Step Solution

3.59 Rating (156 Votes )

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock

import javautilScanner public class Main public static void mainStri... View full answer

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!