Code:/* Name: Hex/Deci Converter Author: SonniE Date: 02/06/08 18:50 */ #include <iostream> using namespace std; int main() { char type, ans; int var; topp: cout << "welcome To SonniE's Data Converter\n"; cout << "Enter How You Would Like To Convert\n1) Hex -> Deci\n2) Deci -> Hex\n"; cin >> type; if (type == '1') { cout << "Enter The Hex Value: "; cin >> hex >> var; cout << "\nHex: "<< hex << var <<"\nDeci: "<<dec<<var<<"\n"; system("pause"); goto query; } else if (type == '2') { cout << "Enter The Deci Value: "; cin >> dec >> var; cout << "\nDeci: "<< dec << var << "\nHex: "<<hex<<var<<"\n"; system("pause"); goto query; } query: cout << "\nDo You Want To Try Again? (y/n)"; cin >> ans; if (ans == 'y' || ans == 'Y') { system("cls"); goto topp; } else { cout << "Thanks For Using SonniE's Converter"; system("pause"); } return 0; }