mirror of
https://github.com/actions/setup-java.git
synced 2025-03-25 23:03:08 +00:00
Create Reema
This commit is contained in:
parent
3a4f6e1af5
commit
d6911027c9
1 changed files with 30 additions and 0 deletions
30
Reema
Normal file
30
Reema
Normal file
|
@ -0,0 +1,30 @@
|
|||
import java.util.* ;
|
||||
public class Coffee{
|
||||
public static void main(String [] args) {
|
||||
Scanner red = new Scanner(System.in);
|
||||
|
||||
System.out.println("Enter the number of g");
|
||||
int num = red.nextInt();
|
||||
|
||||
|
||||
switch ( num )
|
||||
{
|
||||
case 10 :
|
||||
System.out.println("The Pour of coffee : 50 \n The Totel : 150");
|
||||
break ;
|
||||
case 15 :
|
||||
System.out.println("The Pour of coffee : 80 \n The Totel : 240");
|
||||
break ;
|
||||
case 20 :
|
||||
System.out.println("The Pour of coffee : 100 \n The Totel : 300");
|
||||
break ;
|
||||
case 30 :
|
||||
System.out.println("The Pour of coffee : 160 \n The Totel : 480");
|
||||
break ;
|
||||
}
|
||||
System.out.println("Enjoy!!");
|
||||
|
||||
|
||||
|
||||
}
|
||||
}
|
Loading…
Add table
Reference in a new issue