If else
package conditionalStatements;
public class IfElseClass {
public static void main(String[] args) {
int p = 6;
if( p % 2 == 0) {
System.out.println("She Loves Me");
} else {
System.out.println("She Loves Me Not");
}
}
}
package conditionalStatements;
public class IfElseClass {
public static void main(String[] args) {
int p = 6;
if( p % 2 == 0) {
System.out.println("She Loves Me");
} else {
System.out.println("She Loves Me Not");
}
}
}
Comments
Post a Comment