Computer Science, asked by Dibyendu11, 1 year ago

write a program whether the number is divisble by 7 or not when the user enter 200. (Blue java)

Answers

Answered by RishabhRDX
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.

RishabhRDX: have u understood
RishabhRDX: any doubts
Dibyendu11: it will run on blue j
RishabhRDX: blue J.... I haven't used yet
RishabhRDX: I used Dcoder... mobile app
RishabhRDX: blue J is very tough
Similar questions