954,480 Members — Technology Publication meets Social Media
Username:
Password:
Lost login information?
Have something to say? Contribute New Article Reply to this Article

do while loop

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

bdv
Newbie Poster
1 post since Sep 2010
Reputation Points: 10
Solved Threads: 0
 

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.

Narue
Bad Cop
Administrator
15,460 posts since Sep 2004
Reputation Points: 6,464
Solved Threads: 1,401
 

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

CrazyDieter
Junior Poster
108 posts since Jul 2005
Reputation Points: 11
Solved Threads: 6
 

This article has been dead for over three months

Post: Markdown Syntax: Formatting Help
You