Java Even Number Odd Number Example Program ( User Input )

  Рет қаралды 88,806

Example Program

Example Program

Күн бұрын

In this Video tutorial you will learn about Even or Odd Number Example Program / sample program using Java Programming Language.
When you divide a number by 2 if you get the remainder as 0 then that number is said to be Even Number.
If the remainder is a Non Zero value then it is an Odd Number.
Here we are using the modulus operator available in java programming language. It is denoted by using % ( percentage ) symbol.
In this program first we are asking the user to Enter a number and then we are calculating the remainder value and then we are displaying even number or odd number message.
our Social Media Pages
/ exampleprogram
/ exampleprogram
/ examplecomputerprogram
Our Website
www.ExampleProgram.com
#JavaProgramming #ExampleProgram #EvenOddNumber

Пікірлер: 44
@rajeshwaria1081
@rajeshwaria1081 3 жыл бұрын
Thank you so much sir.... your explanation is clear
@ExampleProgram
@ExampleProgram 3 жыл бұрын
You are most welcome
@user-wx9jk3zq4f
@user-wx9jk3zq4f Жыл бұрын
the only person that actually explains what he's doing😭😭 love you bro 🫶
@bruceintrepid3192
@bruceintrepid3192 Жыл бұрын
U just gained a new follower...great work keep it up
@ExampleProgram
@ExampleProgram Жыл бұрын
Awesome, thank you!
@hiddled7739
@hiddled7739 2 жыл бұрын
Thank you so much sir! can you also do arrays on this sir?
@alexisritenour1925
@alexisritenour1925 2 жыл бұрын
thank you helped so much!
@ExampleProgram
@ExampleProgram 2 жыл бұрын
You're welcome!
@vinayaka315
@vinayaka315 4 ай бұрын
Thank you so much sir,I helps me a lot 😊
@ExampleProgram
@ExampleProgram 4 ай бұрын
Always welcome
@farzanabatool2728
@farzanabatool2728 3 жыл бұрын
Thank you sir May God bless you
@ExampleProgram
@ExampleProgram 3 жыл бұрын
pleasure keep learning :)
@blsbapun1128
@blsbapun1128 3 жыл бұрын
Sir your video is vary help fulll for me so thanks you so much sir you are omaging
@ExampleProgram
@ExampleProgram 3 жыл бұрын
Thank you
@trixieann6076
@trixieann6076 2 жыл бұрын
Thank you so much❤️
@ExampleProgram
@ExampleProgram 2 жыл бұрын
You’re welcome 😊
@JJJJ-gl2uf
@JJJJ-gl2uf Жыл бұрын
Great work.
@ExampleProgram
@ExampleProgram Жыл бұрын
Thanks!
@user-xs8xu5dr4r
@user-xs8xu5dr4r 2 ай бұрын
you left the { sign after the if bracket yeah hope am not the only one who saw that that...correct me if am wrong but its an error
@mrpromoter8916
@mrpromoter8916 2 жыл бұрын
Can we use SciTe Software for this
@4ND1N_
@4ND1N_ 2 жыл бұрын
is this work on cp?
@suyahatesntr
@suyahatesntr Жыл бұрын
I am an idiot. I literally listed all numbers 1-100 in switch case statement to produce a result that tells of it is an even or odd number. Luckily, the instructor acknowledged it. I didn't think of this method.
@ExampleProgram
@ExampleProgram Жыл бұрын
its ok keep writing code it will make you better :)
@04abhijeetkrsingh23
@04abhijeetkrsingh23 2 жыл бұрын
Thank u sir it help me a lot for my examination 😀
@ExampleProgram
@ExampleProgram 2 жыл бұрын
Most welcome
@04abhijeetkrsingh23
@04abhijeetkrsingh23 2 жыл бұрын
@@ExampleProgram 🥰
@bosar18
@bosar18 2 жыл бұрын
how can you do this but using a boolean
@gideonarias5192
@gideonarias5192 2 жыл бұрын
What app do you use, Sir?
@ExampleProgram
@ExampleProgram 2 жыл бұрын
Visual studio code
@cmct.technology4061
@cmct.technology4061 4 жыл бұрын
What is brace format sir
@aimanmehboob8893
@aimanmehboob8893 3 жыл бұрын
Output nahe a raha ha
@titan.gaming.
@titan.gaming. 2 жыл бұрын
Titan here
@biswajitmishra6914
@biswajitmishra6914 3 жыл бұрын
what is this scan system ? plz help
@mrpromoter8916
@mrpromoter8916 2 жыл бұрын
Which software did you use for this
@ExampleProgram
@ExampleProgram 2 жыл бұрын
eclipse ide :)
@mrpromoter8916
@mrpromoter8916 2 жыл бұрын
@@ExampleProgram thk
@sahuyuvraj2427
@sahuyuvraj2427 2 жыл бұрын
Where is thread brother😁
@aimanmehboob8893
@aimanmehboob8893 3 жыл бұрын
is not working
@ExampleProgram
@ExampleProgram 3 жыл бұрын
What problem you are facing?
@jkovert
@jkovert 2 жыл бұрын
Is there a rattlesnake outside your window?
@ExampleProgram
@ExampleProgram 2 жыл бұрын
why??
@shehan9157
@shehan9157 6 ай бұрын
import java.util.Scanner; class EvenorOdd { public static void main(String[] args) { Scanner scan = new Scanner(System.in); System.out.println("Enter your Number : "); int userInput = scan.nextInt(); if (userInput % 2 == 0 ){ System.out.println("YOur Number is even"); } else { System.out.println("Your Number is odd "); } } }
Java Example Program to Add Two Numbers ( User Input )
6:50
Example Program
Рет қаралды 58 М.
Frequently Asked Java Program 10: Generate Fibonacci series
9:50
Я обещал подарить ему самокат!
01:00
Vlad Samokatchik
Рет қаралды 9 МЛН
UNO!
00:18
БРУНО
Рет қаралды 3,6 МЛН
GIANT umbrella by Tsuriki Show
00:15
Tsuriki Show
Рет қаралды 6 МЛН
Java program to print even and odd numbers using for loop tutorial
7:13
United Top Tech
Рет қаралды 2,7 М.
Java Strings are Immutable - Here's What That Actually Means
7:06
Coding with John
Рет қаралды 610 М.
What's Your ENGLISH LEVEL? Take This Test!
21:31
Brian Wiles
Рет қаралды 1,8 МЛН
Learn Java in 14 Minutes (seriously)
14:00
Alex Lee
Рет қаралды 4,6 МЛН
Я обещал подарить ему самокат!
01:00
Vlad Samokatchik
Рет қаралды 9 МЛН