0
     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?_

Edited by amalaza

3
Contributors
4
Replies
31
Views
4 Years
Discussion Span
Last Post by amalaza
0

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.....

0

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

1

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.

Edited by NathanOliver

This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.