Calculater code

Joined
Jun 1, 2017
Messages
55
Reaction score
7
#include <iostream>
using namespace std;

int main()
{
cout << "I need two numbers please." << endl;
/*
made by Thiefcom not you ha i'm joking some kids most likely go to steal this code for a school project
*/
cout << "First num" << endl;
bool a;
cin >> a;

cout << "second number please" << endl;
bool b;
cin >> b;

cout << a << "+" << b << "=" << a + b << endl;
cout << a << "-" << b << "=" << a - b << endl;
cout << a << "x" << b << "=" << a * b << endl;
cout << a << "/" << b << "=" << a / b << endl;
return 0;
}
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,756
Messages
2,569,535
Members
45,008
Latest member
obedient dusk

Latest Threads

Top