-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.

YCF_L
  • 51,266
  • 13
  • 85
  • 129
Bhargavi
  • 41
  • 1
  • 5

1 Answers1

1

You can use modulus operator %

System.out.println(10%7);
Gurwinder Singh
  • 37,207
  • 6
  • 50
  • 70