Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Fill in the blanks to print "You rock!" if variable "a" is greater than 15, and variable "b" is less than or equal to 72.
- int a = 144;
- int b = 33;
- if (a >___ 15 b <=___ ) {
- System.out.println("You rock!");
- }
- What is the output of this code?
- int result = 0;
- for (int i = 0; i < 5; i++) {
- if (i == 3) {
- result += 10;
- } else {
- result += i;
- }
- }
- System.out.println(result);
- What is the output of this code?
- int arr[ ] = new int[3];
- for (int i = 0; i < 3; i++) {
- arr[i] = i;
- }
- int res = arr[0] + arr[2];
- System.out.println(res);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement