“Jika lagi pernyataan” Kode Jawaban

Jika lagi pernyataan

int age = 30;

if(age >= 30 && age <= 80){
	System.out.println("Old");
    
}else if(age < 30 && >= 1){
	System.out.println("Young");
    
}else{
	System.out.println("Not Supported");
}
Mohamed Essam

Jika lagi pernyataan

var age=20;
if (age < 18) {
	console.log("underage");
} else {
	console.log("let em in!");
}
Poor Platypus

Jika lagi pernyataan

int x = 30;
int y = 40;

if(y>x)
{
System.out.print("x is greater than y");
}
else
{
System.out.print("x is not greater than y");
}
Javasper

Jika lagi pernyataan

if ((age >= 14) && (age < 19)) {        // logical condition
status = "Eligible.";               // executed if condition is true
} else {                                // else block is optional
status = "Not eligible.";           // executed if condition is false
}
Embarrassed Emu

Jika lagi pernyataan

To learn about Java if else statement visit website:
https://www.allaboutjava.com/2021/07/java-if-else-statements.html
Dark Dunlin

Jawaban yang mirip dengan “Jika lagi pernyataan”

Pertanyaan yang mirip dengan “Jika lagi pernyataan”

Jelajahi jawaban kode populer menurut bahasa

Jelajahi bahasa kode lainnya