Advertisement
Guest User

Untitled

a guest
Jan 23rd, 2018
62
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.23 KB | None | 0 0
  1. 1) Bez petli
  2.  
  3. cin>>haslo
  4. if(haslo=="abc"){
  5. // wsyztsko ok
  6. }
  7. else{
  8. //zle
  9. }
  10.  
  11.  
  12.  
  13. 2) Z petla:
  14.  
  15. cin>>haslo;
  16. while(haslo != "abc"){
  17. //zle
  18. // wprowdz jeszcze raz
  19. cin>>haslo;
  20. }
  21.  
  22. //tutaj bede dopiero jak wrpowadzic poprawne
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement