Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import java.util.Scanner;
- public class FirstSample {
- public static void main(String[] args) {
- int x = 0;
- int y = 0;
- while ( x < 5 ) {
- System.out.print(x + "" + y + " ");
- x = x + 1;
- if ( y < 5 ) {
- x = x + 1;
- if ( y < 3 ) {
- x = x - 1;
- }
- }
- y = y + 2;
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement