Computer Science, asked by rexina2418, 3 months ago

write a program to check entered number is equal to 10 or not

Answers

Answered by ARJUN27082006
2

Answer:

import java.until.*;

public class CHECK

{

public static void main(String args[ ])

{

int number;

Scanner sc=new Scanner(System.in);

System.out.printn("Enter The value of number");

number=sc.nextInt();

if(number%10==0)

System.out.printn("Number Is divisible by 10");

else

System.out.printn("Number Is not divisible by 10");

}

}

Hope It helps its a hundred% correct program.

please subscribe our channel THE HIT DUDE please.

Similar questions