Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Given integers numInput 1 and numInput 2 , output numInput 1 is positive. if numInput 1 is greater than 0 . End with a newline.
Given integers numInput and numInput output "numInput is positive." if numInput is greater than End with a newline.
Assign numInput with if numInput is greater than Otherwise, output "numInput is less than or equal to End with a newline.
Ex: If the input is then the output is:
numInput is positive.
numInput is less than or equal to
numInput is import java.util.Scanner;
public class NumberComparisons
public static void main String args
Scanner scnr new ScannerSystemin;
int numInput;
int numInput;
numInput scnrnextInt;
numInput scnrnextInt;
put your code here
System.out.printlnnumInput is numInput;
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started