0% found this document useful (0 votes)
5 views2 pages

Java Program: Even/Odd & Admission Check

The document contains code for a Java program that takes user input of a number and checks if it is even or odd using conditionals. It also contains code that checks if admission is granted based on marks entered in Physics and Maths using logical operators.

Uploaded by

Anam Akram
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
5 views2 pages

Java Program: Even/Odd & Admission Check

The document contains code for a Java program that takes user input of a number and checks if it is even or odd using conditionals. It also contains code that checks if admission is granted based on marks entered in Physics and Maths using logical operators.

Uploaded by

Anam Akram
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd

00123412

import [Link]

public class Main


{
public static void main(String[] args)
{
Scanner input=new Scanner([Link]);
int a=[Link]();

[Link]("Enter any no between 1 to 100")


if(a%2=0)
[Link]("This is an Even Number");
}
}
import [Link];

public class Main


{
public static void main(String[] args)
{
Scanner input=new Scanner([Link]);
int a=[Link]();

[Link]("Enter any number");


if(a%2==0)
{
[Link]("This is an Even Number");
}
if(a%2!=0)
{
[Link]("This is an Odd Number");
}
}
}

import [Link];

public class Main


{
public static void main(String[] args)
{
Scanner input=new Scanner([Link]);
int a=[Link]();

[Link]("Enter the marks of Physics and Maths");


if(a>=80)
{
[Link]("Admission is Granted");
}
else
{
[Link]("Admission is not Granted");
}
}
}

import [Link];

public class Main


{
public static void main(String[] args)
{
Scanner input=new Scanner([Link]);
int a=[Link]();

[Link]("Enter the marks of Physics and Maths");


if(Math>=80 && Phy>=80 )
{
[Link]("Admission is Granted");
}
else
{
[Link]("Admission is not Granted");
}
}
}

You might also like