Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- for (int i = 0; i < noce; i++) {
- cena += 180;
- }
- to nie jest to samo co:
- cena += 180*noce; ?
- takich pętli for się używa jak musisz coś iterować, np:
- for (int i = 0; i < noce; i++) {
- cena += (180 - i*2);
- }
- jak chcesz zrobić np żeby każda kolejna noc była tańsza, a jak nie to po prostu:
- cena += 180*noce;
- :-)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement