#include <iostream>
#include <string>
using namespace std;
const string end ("end");
int add (float a, float b)
{
return (a + b);
}
int subtract (float a, float b)
{
return (a - b);
}
int main ()
{
string str;
float a, b;
float c;
while (str != "exit" or "Exit")
{
cout << "What operation whould you like to perform?\n";
cout << "Addition, Subraction, Exit\n";
cin >> str;
if (str == "addition" or "Addition" or "add" or "Add")
{
cout << "You have selected Addition.\n";
cout << "let : a + b = c\n";
cout << "Assign a value for a...";
cin >> a;
cout << "Assign a value for b...";
cin >> b;
c = add (a, b);
cout << a << "+" << b << "=" << c << "\n";
}
else if (str == "subtraction" or "Subtraction" or "sub" or "Sub")
{
cout << "You have selected Subtraction.\n";
cout << "let : a - b = c\n";
cout << "Assign a value for a...";
cin >> a;
cout << "Assign a value for b...";
cin >> b;
c = subtract(a, b);
cout << a << "-" << b << "=" << c << "\n";
}
else if (str != "exit")
{
cout << "Invalid operation.";
}
}
return 0;
}

if (str == "addition" or str == "Addition" or str == "add" or str == "Add"){}

while (str != "exit" or str != "Exit"){}
using std::cout; using std::cin; using std::endl;
cout << "hi this is a string" << endl;