Computer Science, asked by suryawanshiheena, 11 hours ago

WAP to check weather a number is divisible 5 or not and take input from user in java​

Answers

Answered by abhija11325
3

public class Check_Divisiblity

int n;

Scanner s = new Scanner(System.

System. out. print("Enter any number:");

n = s. nextInt();

if(n % 5 == 0)

System. out. println(n+" is divisible by 5");

System. out. println(n+" is not div

please mark me as brainlist

Similar questions