0

Calculator program

I want to create calculator program in c++, can anybody help me??

6th Nov 2016, 4:25 PM
Nav Eed
Nav Eed - avatar
3 ответов
+ 1
@Losteraable My code was an example. If you want to write float you can do it.
6th Nov 2016, 6:37 PM
TheLastCookie
TheLastCookie - avatar
0
Write something like that: int x, y; cin >> x, y; cout << x+y << endl; cout << x-y << endl; cout << x*y << endl; and so on. On my codes there is a calculator if you need an example.
6th Nov 2016, 4:59 PM
TheLastCookie
TheLastCookie - avatar
0
@thelastcookie isn't it better to write float or double instead of int so you can have numbers like .5 and stuff?
6th Nov 2016, 6:29 PM
Losteraable