🎓 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
  • 450
    Views
  • 3
    Participants
Last reply from:
PHC-Ubiquity

New Topics

Online now

Members online
1,119
Guests online
1,788
Total visitors
2,907

Forum statistics

Threads
2,288,577
Posts
29,052,563
Members
1,214,186
Latest member
courty
Back
Top