Multiplication Table programExplanation: Step 1: First we need to take the input from the user. Step 2: Next we need to take the for loop and iterate till i<=10 so that it can calculate up to 10. Step 3: we need to start iterating from i=1 and keep on iterating until input numb...Dec 26, 2022
Greatest of Three Numbers programExplanation: Step 1: First, we need to import the Scanner class object for taking input from the user. Step 2: we need to take 3 variables that are num1, num2, and num3 and store the user input values in those variables. Step 3: we need to compare in...Dec 25, 2022
Positive or Negative NumberExplanation : Step 1: Take a number from the user by using the Scanner class object. Step 2: If the given number is < 0 then it is a negative number otherwise, it is a positive number. Java Code : //postive or negative import java.util.Scanner; pub...Dec 25, 2022
Even odd ProgramExplanation: If a number that is divisible by 2 and gives the reminder is 0 then it is called as the even number otherwise, it is a odd number. ex1: suppose we take a number 10 and divided by 2 i.e, 10 / 2 which gives the reminder value is 0 so it is...Dec 23, 2022
Basic Operators ProgramJava code: import java.util.Scanner; public class Main{ public static void main(String[] args){ Scanner sc = new Scanner(System.in); System.out.print("Enter First Number = "); int num1 = sc.nextInt(); System.out....Dec 23, 2022