write a program In java to input any 10 integers and check whether all the entered no are same or not
Answers
Answered by
1
import java.util.*;
class Answer
{
public static void main(String args[])
{
Scanner sc=new Scanner(System.in);
int num1,num2,num3,num4,num5,num6,num7,num8,num9,num10;
System. out.println(" Enter 10 numbers");
num1=sc.nextInt() ;
num2=sc.nextInt() ;
num3=sc.nextInt() ;
num4=sc.nextInt() ;
num5=sc.nextInt() ;
num6=sc.nextInt() ;
num7=sc.nextInt() ;
num8=sc.nextInt() ;
num9=sc.nextInt() ;
num10=sc.nextInt() ;
now write the syntax of if else statement.
Similar questions
Chemistry,
4 months ago
Environmental Sciences,
4 months ago
English,
9 months ago
Math,
1 year ago
Math,
1 year ago