Run Code
|
API
|
Code Wall
|
Misc
|
Feedback
|
Login
|
Theme
|
Privacy
|
Patreon
#9
#include <iostream> using namespace std; int main() { //// char dzialanie; float a, b; cout << "Witam!\nPodaj pierwsza liczbe: "; cin >> a; cout << endl << "Podaj druga liczbe: ";; cin >> b; cout << endl << "Jakie dzialanie Cie interesuje?\tPodaj znak dzialania: "; cin >> dzialanie; cout << endl; switch (dzialanie) { case '+': cout << "Wybrales dodawanie!" << endl; cout << a << " + " << b << " = " << a + b; break; case '-': cout << "Wybrales odejmowanie!" << endl; cout << a << " - " << b << " = " << a - b; break; case '/': cout << "Wybrales dzielenie!" << endl; cout << a << " / " << b << " = " << a / b; break; case '*': cout << "Wybrales mnożenie!" << endl; cout << a << " * " << b << " = " << a * b; break; default: cout << "Miales wybrac dzialanie, ale jak nie to spoko ;)"; } return 0; }
run
|
edit
|
history
|
help
0
Affine Key Finder and Decrypter
#21
Build char string (multibyte) with wchar
Wide string conversion with multibyte chars and locale
32
Multi Inheritance
Fibonacci stairs
hangman
Even Odd
throwing Copyable versus throwing MoveOnly