Advertisement
Guest User

Untitled

a guest
Mar 31st, 2020
78
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.31 KB | None | 0 0
  1. public class Shuffle1 {
  2.  
  3. public static void main (String [] args) {
  4.  
  5. int x = 3;
  6. while (x > 0) {
  7. if (x > 2) {
  8. System.out.print ("a");
  9. }
  10.  
  11. x = x - 1;
  12. System.out.print ("-");
  13.  
  14. if (x==2) {
  15. System.out.print ("b c");
  16. }
  17.  
  18. if (x ==1) {
  19. System.out.print ("d");
  20. x = x-1;
  21. }
  22. }
  23. }
  24. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement