diff --git a/alice-calculator.cpp b/alice-calculator.cpp new file mode 100644 index 0000000..b54b2b5 --- /dev/null +++ b/alice-calculator.cpp @@ -0,0 +1,57 @@ +//Alice Calculator++ +#include +#include +using namespace std; +long double calculations (float a, float b, char op){ + cout<<"Enter the first number: "; + cin>>a; + cout<<"Enter the second number: "; + cin>>b; + cout<<"Enter the operator: "; + cin>>op; + switch(op){ + case '+': + case 'a': + cout<>option; + + if (option=='1'){ + calculations(n1,n2,op); + goto beginning; + } + else if (option=='e' | option=='E' | option=='q' | option=='Q'){ + cout<<"Exiting..."<