🎓 Academic Paunlock po Çℎḙḡḡ

Status
Not open for further replies.

Kenji246

Eternal Poster
Mga Lods pa unlock po Çℎḙḡḡ

Activity lang mga lodi masyado nang malalim yung question, di na kaya ng brain cells HAHAHAHA

Salamat po ng marami sa mag-uunlock

https://www.Çℎḙḡḡ.com/homework-help...a-code-executes-assume-variables-de-q25042184
 
gif.gif

import java.util.Scanner
;

public class Errors {

public static void main(String[] args) {
Scanner console = new Scanner(System.in);
int a, b, c;
boolean found;
System.out.print("Enter the first integer: ");
a = console.nextInt();;
System.out.println();

System.out.print("Enter the second integer: ");
b = console.nextInt();

if (a > a * b && 10 < b) {
found = 2 * a > b;
} else {
found = 2 * a < b;
if(found) {
a = 3;
c = 15;
}
else {
b = 0;
a = 1;
}
}

}

}

gif.gif

true
true
false
true
 
Status
Not open for further replies.

Similar threads

About this Thread

  • 4
    Replies
  • 428
    Views
  • 3
    Participants
Last reply from:
PHC-Ubiquity

Online now

Members online
1,021
Guests online
743
Total visitors
1,764

Forum statistics

Threads
2,275,585
Posts
28,964,275
Members
1,231,875
Latest member
cjpeligro123
Back
Top