ASSIGNMENT 5: DECISION MAKING:
public class MyJavaProject {
public static void main(String[] args) {
int a = 4;
int b = 10;
if (a < b)
{
System.out.println("You are cool!");
}
else
{
System.out.println("You are idiot");
}
//******************************************
if (a > b)
{
System.out.println("You are succeeded");
}
else
{
System.out.println("You are many times idiot");
}
}
}
public class MyJavaProject {
public static void main(String[] args) {
int a = 4;
int b = 10;
if (a < b)
{
System.out.println("You are cool!");
}
else
{
System.out.println("You are idiot");
}
//******************************************
if (a > b)
{
System.out.println("You are succeeded");
}
else
{
System.out.println("You are many times idiot");
}
}
}
No comments:
Post a Comment