+ 1
Can you Write a code show " i love Palastin" with if and else
6 Respostas
+ 13
// Have a nice day ^^
final class DoILoveYou
{
public static void main(String[] args) {
boolean i = false||true;
if(i) {
System.out.print("I love Palastin");
} else {
System.out.print("I hate Palastin");
}
}
}
+ 13
@saad
It prints out "I love palastin" with the use of if else condition, isn't this what you wanted?
+ 4
The question was to vague so if what Dayve wrote isn't what you wanted there's really nothing we can do except guess. Please make sure your questions are clear, as there is hundreds of ways to write this 'code'.
It would be preferred if you showed your code and asked for help on the problem. Or, asked how to do something or how something works.That way we aren't just writing a program for you and you can learn from it.
+ 1
Maybe you are profitional in code but in humain case we never say "i hate palastin
// we support palastin
final class I relly love palastin
{public static void main (String [] age) {
Boolean i = true||false;
If(i) {
System.out.println(" i love palastin ") ;
} else{
System.out.println (" Really !? ¿¡") ;
}}}
0
Relly ? The soconde position is that you hate my palastin 😢
0
You dont tuch what i want