Let a,b be two positive integers, which of the following options correctly relat

  • 0 replies
  • 277 views
*

Offline mechanic

  • *****
  • 2490
    • View Profile
    • Engineering Forum
Question: Let a,b be two positive integers, which of the following options correctly relates / and %?

Options are:


A. b = {a/b}*b + a%b
B. a = {a/b}*b + a%b
C. b = {a%b}*b + a/b
D. a = {a%b}*b + a/b

Correct answer is:

B. a = {a/b}*b + a%b