FazBrowse GitHub Viewer
|
Trending
|
URL:
|
Home
Tools:
[Download Repo ZIP]
[View Raw Code]
[Original HTTPS Page]
javaprogram/Find Even Number at master · githubfordipesh/javaprogram · GitHub
githubfordipesh
javaprogram
Repository navigation
Code
Pull requests
Discussions
Actions
Projects
Security and quality
Insights
Expand file tree
Breadcrumbs
javaprogram
/
Find Even Number
Copy path
More file actions
More file actions
Latest commit
History
History
History
20 lines (15 loc) · 321 Bytes
Breadcrumbs
javaprogram
/
Find Even Number
Copy path
File metadata and controls
20 lines (15 loc) · 321 Bytes
Raw
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
import java.util.Scanner;
public class CheckEven {
public static void main(String[] args) {
int num;
System.out.println("Enter the number");
Scanner sc=new Scanner(System.in);
num=sc.nextInt();
if(num%2==0) {
System.out.println("The number is even");
}
else {
System.out.println("This number is odd");
}
}
}
Back
|
FazBrowse Home
|
New Git URL