Skip to content

Instantly share code, notes, and snippets.

@azizzoaib786
Last active June 14, 2022 07:32
Show Gist options
  • Save azizzoaib786/f13a8e3f1af545226587de1471e23a7f to your computer and use it in GitHub Desktop.
Save azizzoaib786/f13a8e3f1af545226587de1471e23a7f to your computer and use it in GitHub Desktop.
Code Challengues

Code Challengue 2 - Int to Roman

Convert Integer to Roman.

Write a method String convert(int) that takes a number and converts it to the according String representation.

   1 ➔ I
   2 ➔ II
   3 ➔ III
   4 ➔ IV
   5 ➔ V
   9 ➔ IX
  21 ➔ XXI
  50 ➔ L
 100 ➔ C
 500 ➔ D
1000 ➔ M
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment