[ create a new paste ] login | about

Link: http://codepad.org/TsZyGnP0    [ raw code | output | fork ]

puu009 - C++, pasted on Jul 12:
1
2
3
4
5
6
7
8
9
10
11
12
#include <iostream>
using namespace std; 

int main()
{
    cout << "2 + 2 = " << 2 + 2 << endl;
    cout << "1 - 5 = " << 1 - 5 << endl;
    cout << "2 * 9 = " << 2 * 9 << endl;
    cout << "9 / 3 = " << 9 / 3 << endl;
    cout << "9 / 2 = " << 9 / 2 << endl;
    return 0;
}


Output:
1
2
3
4
5
2 + 2 = 4
1 - 5 = -4
2 * 9 = 18
9 / 3 = 3
9 / 2 = 4


Create a new paste based on this one


Comments: