-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathBankAccount.java
More file actions
42 lines (27 loc) · 815 Bytes
/
BankAccount.java
File metadata and controls
42 lines (27 loc) · 815 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
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
import java.util.Scanner;
public class BankAccount{
public static void main(String[] args){
Scanner input = new Scanner(System.in);
System.out.print("Enter your account balance: ");
int number = input.nextInt();
if(number < 100){
System.out.print("Your balance is too low");
}
else if(number == 100 && number <= 1000 ){
System.out.print("your balance is medium");
}
else {
System.out.print("your balance is high odogwu");
}
}
}
/*
bank account
prompt the user to enter their account balance
create a variable to read the user input
check if the user account balance is less than 100
print"Your balance is too low "
check if the user input is equals to 100 and the user input is less than 1000
print"Your balance is medium"
else "Your balance is high "
*/