Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- void liikenne (int tunnit)
- {
- if ( tunnit>=6 && tunnit<9 ) {
- }
- if (tunnit>=15 && tunnit<19) {
- cout << "Ruuhka-aika!" ;
- } else {
- cout << "Iloista matkaa!" ;
- }
- }
- int main()
- {
- cout << "Anna kellonajasta tunti (esim 16): ";
- int tunnit = 0;
- cin >> tunnit;
- liikenne(tunnit) ;
- return EXIT_SUCCESS;
- }
Add Comment
Please, Sign In to add comment