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

New Topics

Trending Topics

Online now

Members online
767
Guests online
2,042
Total visitors
2,809

Forum statistics

Threads
2,333,791
Posts
29,272,856
Members
1,139,103
Latest member
dar15kmyke
Back
Top