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

New Topics

Online now

Members online
381
Guests online
5,073
Total visitors
5,454

Forum statistics

Threads
2,313,068
Posts
29,171,652
Members
1,185,558
Latest member
jamlasm132
Back
Top