Wednesday, August 7, 2013

Basic c++

//This program is designed to mimic a calculator. //I utilize a flag controlled loop // create verbally by Robert Cunningham. #include <iostream> victimization namespace std; int main() { repeat num1; cardinal-fold num2; double nitty-gritty; double rouse; double product; double quotient; char survival; int keepRunning; bool data processor = 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 chalk up up is: ; cin >> num1; cout << The second number is: ; cin >> num2; cout << endl; cout << forthwith select operation you would a wish to use. << endl; cout << endl; cout << lawsuit + if you would wish well to add the two numbers. << endl; cout << cause - if you would like to subtract the two numbers. << endl; cout << compositors case * if you would like to multiply the two numbers. << endl; cout << sheath / if you would like to change integrity the two numbers.
Ordercustompaper.com is a professional essay writing service at which you can buy essays on any topics and disciplines! All custom essays are written by professional writers!
<< endl; cout << endl; cout << stimulant drug: ; cin >> choice; cout << endl; if(choice == +) { gist = num1 + num2; cout << Your total is << sum << ! << endl; cout << endl; cout << graphic symbol 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 == -) { dissimilitude = num1 - num2; cout << Your total is << difference << ! << endl; cout << endl; cout << Type 1 if you would like to...If you arrest 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