Write a program in Java to input two integer numbers
- 5
to form a single number.
Sample Input
First number is 134
Second number is 96
Sample Output
Number after joining 13496
in two numbers
ava.util.*;
Answers
Answered by
5
Answer:import java.util.Scanner;
public class Solution {
public static void main(String[] args) {
Scanner in = new Scanner(System.in);
System.out.print("Input first number: ");
int num1 = in.nextInt();
System.out.print("Input second number: ");
int num2 = in.nextInt();
System.out.print("Input third number: ");
int num3 = in.nextInt();
System.out.print("Input fourth number: ");
int num4 = in.nextInt();
if (num1 == num2 && num2 == num3 && num3 == num4)
{
System.out.println("Numbers are equal.");
}
else
{
System.out.println("Numbers are not equal!");
}
}
}
Explanation:BRAINLIST VARNA MAUT
Similar questions
Math,
4 months ago
English,
4 months ago
Business Studies,
9 months ago
Computer Science,
9 months ago
Biology,
1 year ago
Math,
1 year ago