JL0NLFY0UCANR3AD7HL5! discussion
SOMETHING BUT NOTHING MUCH
date
newest »
newest »
message 1:
by
Grant
(new)
Dec 20, 2012 03:18PM
you're an idiot. TWO GROUPS!
reply
|
flag
message 2:
by
The Awesome Amazing and u know it Aaron!, I like Awesome (Catherine)!
(new)
message 8:
by
Nathaniel's best friend, Fluffy the elephant!!!, Cheeseburger (I wrote this!)
(new)
if you have Xcode on the mac enter this in it is a counculater.if you dont have it and you dont know c++ programing dont worry about it. i just wanted to show you my creation.
#include
using namespace std;
int main(int argc, const char * argv[])
{
//while (command != "1" || command != "add" || command != "2" || command != "subtract" || command != "3" || command != "multiply" || command != "4" || command != "divide" || command!= "5" || command != "square");
do {
int num1;
int num2;
string command;
do {
cout << "what whould you like to do?\n1. add\n2. subtract\n3. multiply\n4. divide\n5. square" << endl;
cin >> command;
if (command == "1" || command == "add") {
cout << "please enter the 2 numbers you whould like to add." << endl;
cin >> num1;
cin >> num2;
cout << num1 << " + " << num2 << " = " << num1 + num2 << endl;
}
if (command == "2" || command == "subtract") {
cout << "please enter the 2 numbers you whould like to subtract." << endl;
cin >> num1;
cin >> num2;
cout << num1 << " - " << num2 << " = " << num1 - num2 << endl;
}
if (command == "3" || command == "multiply") {
cout << "please enter the 2 numbers you whould like to multiply." << endl;
cin >> num1;
cin >> num2;
cout << num1 << " x " << num2 << " = " << num1 * num2 << endl;
}
if (command == "4" || command == "divide") {
cout << "please enter the 2 numbers you whould like to divide." << endl;
cin >> num1;
cin >> num2;
cout << num1 << " / " << num2 << " = " << num1 / num2 << endl;
}
if (command == "5" || command == "square") {
cout << "please enter the number you whould like to square." << endl;
cin >> num1;
cout << num1 << " ^ " << " 2 "<< " = " << num1 * num1 << endl;
}
} while (command != "1" || command != "add" || command != "2" || command != "subtract" || command != "3" || command != "multiply" || command != "4" || command != "divide" || command!= "5" || command != "square");
return 0;
} while (1) ;
}
Super XXXXX Man wrote: "? what is this!"
Hai Lu wrote: "emily, there is no guy moderators.....
wats the point of saying girl moderators"
haha xun, revenge is so very sweet
Hai Lu wrote: "emily, there is no guy moderators.....
wats the point of saying girl moderators"
haha xun, revenge is so very sweet







