1.binary
     2.decimal
     3.octaldecimal
     4.hexadecimal
     enter your choices 1-4?_
     enter binary:_
     in decimal:_
     in octal:_
     in hexa:_
     do you want to repeat the programm? yes or no?_

This should do it:

int main()
{
    cout<<"1.binary"<<endl;
    cout<<"2.decimal"<<endl;
    cout<<"3.octaldecimal"<<endl;
    cout<<"4.hexadecimal"<<endl;
    cout<<"enter your choices 1-4?_"<<endl;
    cout<<"enter binary:_"<<endl;
    cout<<"in decimal:_"<<endl;
    cout<<"in octal:_"<<endl;
    cout<<"in hexa:_"<<endl;
    cout<<"do you want to repeat the programm? yes or no?_"<<endl;
    return 0;
}

For more elaboration, click here.....

I need the conde of this. that if you enter yes it will hrepeat the program if not it will not repeat the program. It has loopings, array and sting now what is the code

What do you have so far? This smells like homework and we do not Just give you the amswer for homework. We will help you if you have a problem but that is it.

ok thanks

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.