-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathday21.java
More file actions
24 lines (17 loc) · 806 Bytes
/
day21.java
File metadata and controls
24 lines (17 loc) · 806 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
import java.util.Scanner;
/* write program that takes input age of person from user as int , now check the wheater the person is eligiable or not ? */
class day21{
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
System.out.println("hi , i'm programmed to check your age and give insigth ,reaistically you came here do that maybe so");
int a = sc.nextInt();
System.out.println("processing im trying to find out , wait little bit");
System.out.println("i found it");
if(a <= 18){
System.out.println("your age is not suitable for this so go away bitch");
}
else{
System.out.println("i think your ? , sound goods , you can vote ")
}
}
}