-2

With out using division operation (/) in java, write a program for division of numbers.

Suppose lets consider two number a=10 and B=7 i want reminder to be printed in the console of the program.

Youcef LAIDANI
  • 55,661
  • 15
  • 90
  • 140
Bhargavi
  • 41
  • 2
  • 5

1 Answers1

1

You can use modulus operator %

System.out.println(10%7);
Gurwinder Singh
  • 38,557
  • 6
  • 51
  • 76