Hello, I am seeking someone to help me learn C++ (Basicly paid lessons) I am learning, im not that good but this is the best ive made so far, just respond with a price point and ill consider, you can also add me on skype: "albertplaysmc" its the one that lives in canada. Im wanting to make a simple bhop internal soon and stuff like that.
Code:
#include <iostream>
using namespace std;
int main()
{
int a;
int b;
string userinput;
int sum;
cout << "Enter a number fam!" << endl;
cin >> a;
cout << "Now what do you want to do: +,-,*,/,%.? \n";
cin >> userinput;
if (userinput == "+")
{
cout << "Enter another number! \n";
cin >> b;
sum = a + b;
cout << "The total of those numbers are: " <<sum << endl;
}
if (userinput == "-")
{
cout << "Enter another number! \n";
cin >> b;
sum = a - b;
cout << "The total of those numbers are: " <<sum << endl;
}
if (userinput == "*")
{
cout << "Enter another number! \n";
cin >> b;
sum = a * b;
cout << "The total of those numbers are: " <<sum << endl;
}
if (userinput == "/")
{
cout << "Enter another number! \n";
cin >> b;
sum = a / b;
cout << "The total of those numbers are: " <<sum << endl;
}
if (userinput == "%")
{
cout << "Enter another number! \n";
cin >> b;
sum = a % b;
cout << "The total of those numbers are: " <<sum << endl;
}
return 0;
}