Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public class Main {
- public static void main(String[] args) {
- // write your code here
- int x =0;
- int y = 30;
- for (int outer = 0; outer<3;outer++){
- for (int inner=4; inner>1;inner--){
- x=x+3;
- y=y-2;
- if (x==6){
- break;
- }
- x = x+3;
- }
- y = y-2;
- }
- System.out.println(x+ " " + y);
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement