i have a problem,,here in turbo c i don't know if what kind of loop i will use can you please help me with this problem??

"write a program that accepts ordinary number and outputs,the equivalent in roman numerals"
1------I
5------V
10-----X
50-----L
100----C
500----D
1000---M
1500---MD

Until 3000 Only

Recommended Answers

All 2 Replies

I'd use a while loop. But since you can use any loop to simulate the behavior of any other loop, it's really personal preference.

If I were you, I'd use more than one loop :)

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.