dimanche 22 mars 2020

Java - an assignment for a beginner. Using modulo to find divisibility and creating a loop afterwards

I've just started my adventure with developing and I've stumbled upon my first bump. Could anyone help me solve this assignment for the beginners or just show me how to start and what to use in variables?

Write a code that will: 1.Check if number X is divisible by number 7 without reminder.

2.If so - in the console show sentence: "Number 7 is a divider of number X" (instead of X show value of variable)

3.If not - in the console show sentence: "Number 7 is NOT a divider of number X" (instead of X show value of variable).

Aucun commentaire:

Enregistrer un commentaire