W̳r̳i̳t̳e̳ ̳a̳ ̳M̳A̳R̳I̳E̳ ̳a̳s̳s̳e̳m̳b̳l̳y̳ ̳p̳r̳o̳g̳r̳a̳m̳ ̳t̳h̳a̳t̳ ̳a̳s̳k̳s̳ ̳t̳h̳e̳ ̳u̳s̳e̳r̳ ̳t̳o̳ ̳i̳n̳p̳u̳t̳ ̳p̳o̳s̳i̳t̳i̳v̳e̳ ̳n̳u̳m̳b̳e̳r̳s̳ ̳A̳ ̳a̳n̳d̳ ̳B̳.̳ ̳T̳h̳e̳ ̳p̳r̳o̳g̳r̳a̳m̳ ̳s̳h̳o̳u̳l̳d̳ ̳d̳i̳v̳i̳d̳e̳ ̳A̳ ̳b̳y̳ ̳B̳ ̳a̳n̳d̳ ̳d̳i̳s̳p̳l̳a̳y̳ ̳t̳h̳e̳ ̳q̳u̳o̳t̳i̳e̳n̳t̳ ̳a̳n̳d̳ ̳r̳e̳m̳a̳i̳n̳d̳e̳r̳.
W̳r̳i̳t̳e̳ ̳a̳ ̳M̳A̳R̳I̳E̳ ̳a̳s̳s̳e̳m̳b̳l̳y̳ ̳p̳r̳o̳g̳r̳a̳m̳ ̳t̳h̳a̳t̳ ̳a̳s̳k̳s̳ ̳t̳h̳e̳ ̳u̳s̳e̳r̳ ̳t̳o̳ ̳i̳n̳p̳u̳t̳ ̳p̳o̳s̳i̳t̳i̳v̳e̳ ̳n̳u̳m̳b̳e̳r̳s̳ ̳A̳ ̳a̳n̳d̳ ̳B̳.̳ ̳T̳h̳e̳ ̳p̳r̳o̳g̳r̳a̳m̳ ̳s̳h̳o̳u̳l̳d̳ ̳d̳i̳v̳i̳d̳e̳ ̳A̳ ̳b̳y̳ ̳B̳ ̳a̳n̳d̳ ̳d̳i̳s̳p̳l̳a̳y̳ ̳t̳h̳e̳ ̳q̳u̳o̳t̳i̳e̳n̳t̳ ̳a̳n̳d̳ ̳r̳e̳m̳a̳i̳n̳d̳e̳r̳.
F̳o̳r̳ ̳e̳x̳a̳m̳p̳l̳e̳,̳ ̳i̳f̳ ̳t̳h̳e̳ ̳e̳n̳t̳e̳r̳e̳d̳ ̳v̳a̳l̳u̳e̳s̳ ̳a̳r̳e̳ ̳2̳7̳ ̳a̳n̳d̳ ̳5̳,̳ ̳t̳h̳e̳n̳ ̳t̳h̳e̳ ̳o̳u̳t̳p̳u̳t̳ ̳s̳e̳q̳u̳e̳n̳c̳e̳ ̳s̳h̳o̳u̳l̳d̳ ̳b̳e̳:̳ ̳5̳ ̳(̳q̳u̳o̳t̳i̳e̳n̳t̳)̳,̳ ̳a̳n̳d̳ ̳2̳ ̳(̳r̳e̳m̳a̳i̳n̳d̳e̳r̳)̳.̳
A̳d̳d̳ ̳a̳n̳ ̳e̳x̳p̳l̳a̳n̳a̳t̳i̳o̳n̳ ̳o̳f̳ ̳y̳o̳u̳r̳ ̳c̳o̳d̳e̳ ̳a̳s̳ ̳c̳o̳m̳m̳e̳n̳t̳s̳, a̳n̳d̳ ̳Y̳o̳u̳ ̳s̳h̳o̳u̳l̳d̳ ̳i̳n̳c̳l̳u̳d̳e̳ ̳t̳h̳e̳ ̳p̳r̳o̳p̳e̳r̳ ̳l̳a̳b̳e̳l̳s̳ ̳a̳n̳d̳ ̳d̳i̳r̳e̳c̳t̳i̳v̳e̳s̳ ̳a̳t̳ ̳t̳h̳e̳ ̳e̳n̳d̳ ̳o̳f̳ ̳y̳o̳u̳r̳ ̳p̳r̳o̳g̳r̳a̳m̳.̳ ̳ ̳
Trending now
This is a popular solution!
Step by step
Solved in 2 steps