Automation QA Testing Course Content

Java Excercise- 3

Uncomment one line so that the program displays the numbers 12 and 2 (first 12, and then 2).



package com.qa.task.task01.task0107;

/* 
No comments needed

*/

public class Solution {
    public static void main(String[] args) {
        int x = 2;
        int y = 12;

        // y = x * y;
        // y = x + y;

        x = y - x;
        y = y - x;

        System.out.println(x);
        System.out.println(y);
    }

}

No comments:

Post a Comment

Note: Only a member of this blog may post a comment.