.

Thursday, November 21, 2013

Basic c++

//This program is designed to mimic a calculator. //I hire a flag controlled loop //Written by Robert Cunningham. # implicate <iostream> victimisation namespace std; int main() { doubling num1; double num2; double nitty-gritty; double fight; double product; double quotient; char alternative; int keepRunning; bool figurer = true; while(Calculator) { cout << Welcome to calculator! << endl; cout << First, declare to vaiables to provide, subtract, regurgitate or dissociate << endl; cout << endl; cout << The first numeral is: ; cin >> num1; cout << The second number is: ; cin >> num2; cout << endl; cout << now select operation you would same(p) to use. << endl; cout << endl; cout << lawsuit + if you would uniform to add the dickens numbers. << endl; cout << cause - if you would corresponding to subtract the two numbers. <& lt; endl; cout << Type * if you would like to multiply the two numbers. << endl; cout << Type / if you would like to divide 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 << Input: ; cin >> choice; cout << endl; if(choice == +) { sum = num1 + num2; cout << Your fall is << sum << ! << endl; cout << endl; cout << Type 1 if you would like to find another(prenominal) 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 = dishonest; } } if(choice == -) { divergence = num1 - num2; cout << Your total is << difference << ! << endl; cout << endl; cout << Type 1 if you would like to...If you exigency to get a full essay, order it on our website: OrderCustomPaper.com

If you want to get a full essay, visit our page: write my paper

No comments:

Post a Comment