BETA

Difficulty Level:

Basic

Total Submissions: 1699 Accuracy:

30.84%

Convert to Roman No (Function Problem)

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


					   
It is recommended to 'Compile & Test' your code before clicking 'Submit'!

Compilation/Execution Result:

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