Learn more about our help with Assignments: JavaJSPJSF
Comments
Assignment Expert
18.05.21, 14:39
Dear zunair, please post a new question.
zunair
18.05.21, 06:54
Suppose that the input is: 58 23 46 75 98 150 12 176 145 -999 What is
the output of the following program? import java.util.*; public class
FindTheOutput { static Scanner console = new Scanner(System.in);
public static void main(String[] args) { int num; num =
console.nextInt(); while (num != -999) { System.out.print(num % 25 + "
"); num = console.nextInt(); } System.out.println(); } }
Leave a comment
Thank you! Your comments have been successfully added. However, they need to be checked by the moderator before being published.
Comments
Dear zunair, please post a new question.
Suppose that the input is: 58 23 46 75 98 150 12 176 145 -999 What is the output of the following program? import java.util.*; public class FindTheOutput { static Scanner console = new Scanner(System.in); public static void main(String[] args) { int num; num = console.nextInt(); while (num != -999) { System.out.print(num % 25 + " "); num = console.nextInt(); } System.out.println(); } }
Leave a comment