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
student.h
dump_own_process.cpp
Wrong type deduction of std::valarray expression
zero size std::array parameter
hangman
sinem çalışma
Say if number is prime and give its factors
Noexcept
jkljklj
Replace all spaces in a string in C++