hello people I just started to learn C++ 3 days ago, I am just 13 yrs old
I have made this basic maths utility tool or you can call it a calculator but it tells everything, multiplication, division, addition, subtraction at once.
// if you could help me with it it would be amazing.
// please help me by typing the code as I started to learn it 3 days ago
// there might be some stuff like if, which is of no use I just added it by mistake
//This code was written in Code::Blocks
#include <iostream>
using namespace std;
int main()
{
float numb1, numb2, result;
char symbol;
cout<<"Please enter first number: ";
cin>> numb1;
cin.ignore();
cout<<"You entered: "<< numb1 <<"\n";
cout<<"your second number";
cin>> numb2;
cin.ignore();
cout<<"You entered: "<< numb2 <<"\n";
cout <<"................................................................................\n";
if ("symbol = +")
result = numb1 + numb2;
cout<<"the sum is :"<< result <<"\n";
cout <<".........................................................................................\n";
if ("symbol = -")
result = numb1 - numb2;
cout<<"the difference is:"<< result <<"\n";
cout <<"..........................................................................................\n";
if ("symbol = /")
result = numb1 / numb2;
cout<<"the quotient is:"<< result <<"\n";
cout <<"...........................................................................................\n";
if ("symbol = *")
result = numb1 * numb2;
cout<<"the product is:"<< result <<"\n";
cout <<"................................................................................\n";
cout <<"made by vikram sehgal\n";
cin.get();
}