Akatsuki-Coding-Club / Data-Structures-Algorithms-Akatsuki-Coding-CLub

Welcome to the Hacktoberfest DSA Cohort for R.C. Patel Institute of Technology students! To request issue assignment, create a pull request, providing: 1. Full Name 🧑‍🎓 2.Email 📧 3.College ID (RNO) 🔢 4.Branch of Study.📚 5. Year 📆 .R.C. Patel Institute of Technology students' PRs will be considered only.Thank you!
MIT License
11 stars 57 forks source link

Convert to Roman No #120

Open vivekPatil45 opened 1 year ago

vivekPatil45 commented 1 year ago

❗Write Code in Only One Language ( CPP , C , Java , Python )

Give File Name : ConverttoRomanNo ✅ In respective language folder

📑 DESCRIPTION

Convert to Roman No

Difficulty: Easy

Given an integer n, your task is to complete the function convertToRoman which prints the corresponding roman number of n. Various symbols and their values are given below Note:- There are a few exceptions for some numbers like 4 in roman is IV,9 in roman is IX, similarly, 40 is XL while 90 is XC. Similarly, 400 is CD while 900 is CM

I 1 V 5 X 10 L 50 C 100 D 500 M 1000

Example 1:

Input:
n = 5
Output: V

Example 2:

IInput:
n = 3
Output: III

Your Task: Complete the function convertToRoman() which takes an integer N as input parameter and returns the equivalent roman.

imrtls00 commented 1 year ago

Sure, I'll submit the PR!

imrtls00 commented 1 year ago

Submitted a PR #125

Tashuuuu commented 1 year ago

Can I work on it?

AnuragDhavale commented 11 months ago

@vivekPatil45 I would like to work on this issue. Could you please assign me

uHan2 commented 7 months ago

could you assign to me? i can work with java code :)