Hi! First of all i would like to say that i'm just starting my adventure with C++ and overall programing.
So, i have a question, how do i build a program to convert from quinary to 15(i dunno how this numeral system is called in english). I have already build a program to convert from binary to decimal, now i want to try something harder but i feel like i cannot quite do it. Oh, and this converter has to be build only with iostream libary.
And also why doesn't this code work? It has to convert roman digits to arabic ones.
#include <iostream>
usingnamespace std;
int main()
{
int a;
cin>>a;
if (a=1);
cout<<"I";
if (a=5);
cout<<"V";
if (a=10);
cout<<"X";
if (a=50);
cout<<"L";
if (a=100);
cout<<"C";
if (a=500);
cout<<"D";
if (a=1000);
cout<<"M";
}
Thanks for any potential answers, you will really help me. :)
By the way im so sorry for any grammar mistakes, im not a native speaker.