The number is divisible by 5” Print “The number is not divisible by 5”
Answers
Answered by
0
Answer:
calculator
Explanation:
computer has a one calculator
Answered by
0
Answer:
import java.util.*;
public class Main
{
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
System.out.print("Enter a number:");
int five = sc.nextInt();
if(five%5 == 0)
System.out.println("The number is divisble by five");
else
System.out.println("The number is not divisble by five");
}
}
Explanation:
Similar questions