SHARE
TWEET

Untitled

a guest Jun 19th, 2017 44 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. public class count{
  2. int k =0;
  3. while(k < 10)
  4. {
  5. k++;
  6. system.out.rintln(k);
  7. }
  8.  
  9. //********************
  10. int k=10
  11. while(k > 0)
  12. {
  13. System.out.println(k);
  14. k--;
  15. }
  16. //****************
  17. k =0;
  18. while(k < 20)
  19. {
  20. k += 2;
  21. sytem.out.println(k);
  22. }
  23. //***************
  24. int i=0;
  25. while(i<50)
  26. {
  27. i++;
  28. system.out.println("I love java");
  29. }
  30. //*************************
  31. int i = 64;
  32. char k = null;
  33. (while i != 90)
  34. {
  35. i++
  36. k = i;
  37. System.out.println(k);
  38. }
RAW Paste Data
Pastebin PRO Summer Special!
Get 40% OFF on Pastebin PRO accounts!
Top