Write a piece of assembly code in SimpleRisc to find
out if a number is a Factorian
number or Dudeney number. Save 1 in r1 if it is a Factorian number;
otherwise,
save 0. Save 1 in r2 if it is a Dudeney number; otherwise, save 0.
You have to write
a single program to test both these conditions.
Get Answers For Free
Most questions answered within 1 hours.