Felanpro

uppgift81

Nov 19th, 2020
91
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.62 KB | None | 0 0
  1. /*
  2. * To change this license header, choose License Headers in Project Properties.
  3. * To change this template file, choose Tools | Templates
  4. * and open the template in the editor.
  5. */
  6. package skola;
  7.  
  8. /**
  9. *
  10. * @author Felix 1
  11. */
  12. public class Uppgift81 {
  13.  
  14. /**
  15. * @param args the command line arguments
  16. */
  17. public static void main(String[] args) {
  18. for(int i = 3; i <= 10; i++)
  19. {
  20. System.out.println(i);
  21. }
  22.  
  23. int i = 3;
  24. do
  25. {
  26. System.out.println(i);
  27. i++;
  28. }
  29. while(i <= 10);
  30. }
  31.  
  32. }
  33.  
Add Comment
Please, Sign In to add comment