6 baar nikal
class Logical {
public static void main(String[] args) {
int a = 10, b = 10, i = 0;
do {
if (a > 0 && b < 0) {
System.out.println("Both are negative");
} else {
System.out.println("Both are positive");
i++;
}
} while (i <= 10);
}
}
class Logical {
public static void main(String[] args) {
int a = 10, b = 10, i = 0;
do {
if (a > 0 && b < 0) {
System.out.println("Both are negative");
} else {
System.out.println("Both are positive");
i++;
}
} while (i <= 10);
}
}
Comments
Post a Comment