Java Program to Check whether a number is even or odd using ternary operator

Опубликовано: 28 Сентябрь 2024
на канале: pk
446
5

#Java #Program to Check whether a number is #even or #odd using ternary operator

In this tutorial, you'll learn to check if a number entered by an user is even or odd. This will be done using if...else statement and ternary operator in Java.

Code: https://github.com/parkashheerani/Jav...