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 

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

1 Expert Approved Answer
Step: 1 Unlock

import javautilScanner public class PositiveEvenCheck public static void main... View full answer

blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!