Advertisement
Varasku

Liczby nieparzyste

Oct 25th, 2018
118
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.43 KB | None | 0 0
  1.  
  2. package pętlee9;
  3.  
  4.  
  5. public class PętleE9 {
  6.  
  7. public static void main(String[] args) {
  8.  
  9. int licznik =0;
  10. do{
  11. if(licznik % 2 == 1)
  12. System.out.println("Liczby nieparzyste" + licznik);
  13. licznik = licznik +=1;
  14.  
  15.  
  16. }
  17. while (licznik < 10 && licznik > 0);
  18.  
  19.  
  20.  
  21.  
  22.  
  23.  
  24. }
  25.  
  26. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement