Convert to Roman No
Submissions: 5350   Accuracy:

44.93%

  Difficulty: Basic   Marks: 1
Associated Course(s):   Sudo Placement 2019

Given an integer n your task is to complete the function convertToRoman which prints the corresponding roman number of n .

Input:
The first line of each test case contains the no of test cases T. Then T test cases follow. Each test case contains a single integer n.

Output:
For each test case in a new line output will be the roman number representation of n. 

Constraints:
1<=T<=100
1<=n<4000

Example:
Input

2
5
3
Output
V
III 

 

** For More Input/Output Examples Use 'Expected Output' option **

Contributor: Amit Khandelwal, Harshit Sidhwa
Author: Shubham Joshi 1


If you have purchased any course from GeeksforGeeks then please ask your doubt on course discussion forum. You will get quick replies from GFG Moderators there.



Need help with your code? Please use ide.geeksforgeeks.org, generate link and share the link here.


to report an issue on this page.