This is just the start of my calculator I'm trying to make but it's not turning out well. This is just the begening and I'm going to keep going on later but I used this script. If you want to try the output put it in Visual Studios(If you have it).
Please help me!
Please help me!
Code:
#include "stdafx.h"
#include <iostream>
using namespace std;
int main()
{
cout << "This is my calculator. It follows the BEDMAS Rules. \n" ;
signed float number1 ;
signed float number2 ;
signed float number3 ;
signed float finalequation ;
cout << "Enter two or three numbers. \n" ;
cout << "Use * to multiply. \n" ;
cout << "Use + to add. \n" ;
cout << "Use - to subtract. \n" ;
cout << "Use / to divide. \n" ;
cin.get();
if(number1 + number2 + number3 = finalequation)
cout << "You just added"; cout << number1; cout << " to "; cout << number2; cout << "to"; cout << number3; cout << "!";
cin.get();
return 0;
}