answertoyourproblems
answertoyourproblems answertoyourproblems
  • 28-10-2020
  • Computers and Technology
contestada

How to use modulo operator in Java

Respuesta :

Cytokine
Cytokine Cytokine
  • 29-10-2020

To use modulo in Java, you have to use the percent symbol %.

For instance,

int x = 2;

int y = 2;

System.out.println(x%y) will print 0 to the screen.

Answer Link

Otras preguntas

Based on the title of Chomsky's lecture, write a well structured essay of 500 words in which you argue whether formal education, provided by schools and univers
The cold war between the Soviet Union and United States led to a
Find the measure of the indicated angle to the nearest degree.
DUE BEFORE 11 PM SOLVE THE TRIANGLE
Sharon wants to set aside funds to take an around the world cruise in 4 years. Sharon expects that she will need $26000 for her dream vacation. If she is able t
he Anwar family is planning to build a new home. They have hired 2 different architects to create blueprints for the house. Anderson Architects uses a scale of
PLEASE HELP WILL GIVE BRAINLEST! What is the amplitude of the function graphed below?
Explain the importance of modern technology in education.​
This is due soon and I need help with this. I would appreciate it if anyone can help me with it. Thanks :)
Based on the cast of characters from The Proposal, who is a father? A. Stepan Stepanovitch Chubukov B. Natalya Stepanovina C. Ivan Vassilevitch Lomov D. None of