Sentencia IF – ELSE

Sentencia IF – ELSE

1

 

/**
* @param args
*/
public static void main(String[] args) {
// TODO Auto-generated method stub
System.out.println(«Tuto en java»);
int variable = 5;
boolean cond;
cond = true;

if(variable >= 10){

cond = true;

}else{
cond = false;

}
if(cond){
System.out.println(«Ok»);

}
else{

System.out.println(«Mal»);

}
}

https://mega.nz/#!U8w2TShS!CDci5suu7WeqzCWzz8YPELFSwR4-vfvxvFY-_18flxI

No Comments

Sorry, the comment form is closed at this time.