InterviewSolution
Saved Bookmarks
| 1. |
Give the pseudo code to represent a rational number as a pair of two integers? |
|
Answer» You can now represent a rational number as a pair of two integers in pseudo code: a numerator and a denominator. rational (n, d): return [n, d] numer (x): return x [0] denom (x): return x [1] |
|