Computer Science, asked by Rejoice6983, 10 months ago

Write a program to print whether a number is divisible by 4 and 5 both in Java

Answers

Answered by devikamj5rv
1

Answer:

divisibility by 4&5

Explanation:

int n=Integer.parseInt(br.readLine());

//input a no. in 'n'.

if(n%4==0&&n%5==0)

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

else

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

Similar questions