Hi again, working on exercises 4. I have finished the assigned but I'm trying to add new line. I tried to add if(end it would end the program. But I cant figure it out.
// Exercises 4
#include "std_lib_facilities.h"
int main()
{
int val1;
int val2;
string end;
start:
cout << "Please enter first number. OR ------- Type 'end' to exit this cmd.\n";
cin >> val1;
cout << "Please enter second number, we will tell you which is larger.\n";
cin >> val2;
if(val1 > val2)
cout << val1 << " is greater than " << val2 <<"\n";
if(val1 < val2)
cout << val2 << " is greater than " << val1 <<"\n";
if(val1 == val2)
cout << val1 << " and " << val2 << " is equal.\n";
cout << "\n";
{
if(end == end)
return(0);
}
goto start;
}