# include <iostream>
using namespace std;
int main(void)
{
float a, b, result;
char symbol;
cout << "enter first number a: ";
cin >> a;
cout << "enter second number b: ";
cin >> b;
cout << "Enter the operation you want to done: [(+),(-),(*),(/)]";
cin >> symbol;
if (symbol == '+' )
{
cout << "you have pressed + \n";
result = a + b;
cout << result<<endl;
}
else if (symbol == '-')
{
cout << "you have prressed - \n";
result = a - b;
cout << result <<endl;
}
else if (symbol == '*')
{
cout << "you have pressed * \n";
result = a * b;
cout << result <<endl;
}
else if (symbol == '/')
{
cout << "you have pressed / \n";
result = a / b;
cout << result <<endl;
}
else
{
cout << "you have entered an invalid function!!! \n";
}
system("pause");
return 0;
}
# include <iostream>
using namespace std;
int main(void)
{
int i;
float a, b, result;
char symbol;
while (i = 3)
{
cout << "enter first number a: ";
cin >> a;
cout << "enter second number b: ";
cin >> b;
cout << "Enter the operation you want to done: [(+),(-),(*),(/)]";
cin >> symbol;
if (symbol == '+' )
{
cout << "you have pressed + \n";
result = a + b;
cout << result<<endl;
}
else if (symbol == '-')
{
cout << "you have prressed - \n";
result = a - b;
cout << result <<endl;
}
else if (symbol == '*')
{
cout << "you have pressed * \n";
result = a * b;
cout << result <<endl;
}
else if (symbol == '/')
{
cout << "you have pressed / \n";
result = a / b;
cout << result <<endl;
}
else
{
cout << "you have entered an invalid function!!! \n";
}
}
system("pause");
return 0;
}
It might be even just more left than expected. This minor fluctuation in our generally accepted hypothesis is a common misconception which is (by our hypothesis) caused by the disability to determine directions. It is this that causes left and right to be completely undefined and arbitrary. Furthermore there should be noted that, although the before said is completely true, you might really even have been gone far as decided to go even want to do look more like.
My hobby: Trying to make a point by trolling non-descriptive threads.