write a program whether the number is divisble by 7 or not when the user enter 200. (Blue java)
Answers
Answered by
0
import java.util.*;
class followRishabhRDX
{
public static void main(String[] args)
{
Scanner in = new Scanner(System.in);
System.out.println("Enter the number");
int num = in.nextInt();
if(num%7==0)
System.out.println("The entered number is completely divisible by 7");
else
System.out.println("The entered number isn't divisible by 7");
}
}
According to your question,
The number given by user is 200.
Input : 200
Output:The entered number isn't divisible by 7.
class followRishabhRDX
{
public static void main(String[] args)
{
Scanner in = new Scanner(System.in);
System.out.println("Enter the number");
int num = in.nextInt();
if(num%7==0)
System.out.println("The entered number is completely divisible by 7");
else
System.out.println("The entered number isn't divisible by 7");
}
}
According to your question,
The number given by user is 200.
Input : 200
Output:The entered number isn't divisible by 7.
RishabhRDX:
have u understood
Similar questions