Question: port java.util.Scanner; public class 05 { public static void main(String[] args) { Scanner input= new Scanner (System.in); System.out.println(Printing first K Multiples of a Number N);



port java.util.Scanner; public class 05 { public static void main(String[] args) { Scanner input= new Scanner (System.in); System.out.println("Printing first K Multiples of a Number N"); System.out.println("Enter the number you want to get multiples"); int N= input.nextInt(); System.out.println(" How many numbers you want to print"); 7/K is the number of multiples of N to print int K=input.nextInt(); I/Write the logic to print first k multiples of N } public class (6 { public static void main(String[] args) { Scanner input= new Scanner(System.in); System.out.println(" Find the maximum of three numbers"); System.out.println("Enter Three numbers"); int x=input.nextInt(); int y=input.nextInt(); int z=input.nextInt(); 1/print the maximum number here /* public static int findMax(int a, int b, int c){ 1/ implement the logic to find the maximum } */ static void main(String[] args) /* Assume that you and a few of your friends went to a restaurant, ** Assume You want to split the bill equally after having the meal. Write a code that will take the bill amount, tax percentage, tip, and the number of people as inputs and prints the share amount in dollars each person has to pay. Assume that the tax is 8.5 %, and the tip 1s 15 %. public static void main(String[] args) { Scanner input= new Scanner(System.in); System.out.println(" Arithmetic Operation"); System.out.println("Enter two Numbers:"); int a=input.nextInt(); int b= input.nextInt(); System.out.println("Enter your preference: "); System.out.println("1. Add 2. Subtract, 3. Multiply, 4. Divide, 5. quit."); 1/Complete the code to perform an arithmetic operation until the user wants to quit. 1/implement the logic to perform the above mentioned operations
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
