Question: Write a program to input two integers and print Both are positive and even. to the screen, if both are positive and even. Print
Write a program to input two integers and print "Both are positive and even." to the screen, if both are positive and even. Print "At least one is negative or odd." otherwise. Consider the number O positive in this case. (JAVA) Sample Run 1: Enter two numbers: 78 100 Both are positive and even. Sample Run 2: Enter two numbers: 15 52 At least one is negative or odd. Sample Run 3: Enter two numbers: 0 -12 At least one is negative or odd.
Step by Step Solution
3.46 Rating (156 Votes )
There are 3 Steps involved in it
import javautilScanner public class PositiveEvenCheck public static void main... View full answer
Get step-by-step solutions from verified subject matter experts
