//This program is designed to copy a ready reckoner. //I expend a flag controlled loop // create verbally by Robert Cunningham. #include <iostream> victimisation namespace std; int main() { ternary num1; stunt woman num2; double nitty-gritty; double fence; double product; double quotient; char select; int keepRunning; bool estimator = true; while(Calculator) { cout << Welcome to calculator! << endl; cout << First, declare to vaiables to provide, subtract, multiply or dissociate << endl; cout << endl; cout << The first upshot is: ; cin >> num1; cout << The second number is: ; cin >> num2; cout << endl; cout << direct select operation you would handle to use. << endl; cout << endl; cout << lawsuit + if you would resembling to check the both numbers. << endl; cout << cause - if you would equivalent to subtract the two numbers. << endl; cout << showcase * if you would like to multiply the two numbers. << endl; cout << guinea pig / if you would like to catchment area the two numbers.
<< endl; cout << endl; cout << arousal: ; cin >> choice; cout << endl; if(choice == +) { mall = num1 + num2; cout << Your total is << sum << ! << endl; cout << endl; cout << token 1 if you would like to find another answer. << endl; cout << Type 2 to exit the program. << endl; cout << endl; cout << Input: ; cin >> keepRunning; if(keepRunning == 1) { system(CLS); } if(keepRunning == 2) { Calculator = false; } } if(choice == -) { discrepancy = num1 - num2; cout << Your total is << difference << ! << endl; cout << endl; cout << Type 1 if you would like to...If you touch to get a beneficial essay, order it on our website: Ordercustompaper.com
If you want to get a full essay, wisit our page: write my paper
No comments:
Post a Comment