Run Code
|
API
|
Code Wall
|
Misc
|
Feedback
|
Login
|
Theme
|
Privacy
|
Patreon
#8
#include <iostream> using namespace std; int main() { //// int wiek; std::cin >> wiek; if( wiek >= 18 && wiek <= 100 ) { std::cout << "Twierdzisz, ze jestes pelnoletni..." << std::endl; std::cout << "ale czy to kogos interesuje? :)" << std::endl; } std::cout << "Koniec" << std::endl; //// int wiek2; std::cin >> wiek2; if( wiek2 < 18 ) { std::cout << "Nie jestes pelnoletni" << std::endl; } else { std::cout << "Jestes pelnoletni" << std::endl; std::cout << "Koniec" << std::endl; } return 0; }
run
|
edit
|
history
|
help
0
Computing factorial of an integer with recursion and iteration
move swap
iota_30-Seconds-of-C++
Redeclare with auto
a parameter pack
codecvt wide string conversion with multibyte chars and locale + concatenation
boost::asyc fail with error C2280: attempting to reference a deleted function
SFINAE with std::enable_if
Hangman
#21.2