Is there a roman numeral for the number zero?

Why does my C++ output doesn't convert a number into a roman numeral?

  • include <iostream> #include <string> using namespace std; int main() { int number; string numeral; cout<<"Enter a number: "; cin>> number; if(number ==1) numeral = "I"; else if (number ==5) numeral = "V"; else if (number ==10) numeral = "X"; else if (number ==50) numeral = "L"; else if (number ==100) numeral = "C"; else if (number ==500) numeral = "D"; else if (number ==1000) numeral = "M"; return 0; }

  • Answer:

    Add the following line to your program before the "return 0" cout << number << " in Roman is " << numeral << endl;

Oliepopz at Yahoo! Answers Visit the source

Was this solution helpful to you?

Other answers

Well, for starters, there's no code for any output.

Just Added Q & A:

Find solution

For every problem there is a solution! Proved by Solucija.

  • Got an issue and looking for advice?

  • Ask Solucija to search every corner of the Web for help.

  • Get workable solutions and helpful tips in a moment.

Just ask Solucija about an issue you face and immediately get a list of ready solutions, answers and tips from other Internet users. We always provide the most suitable and complete answer to your question at the top, along with a few good alternatives below.