Problem 02:
Write a program that ask the user to enter the
marks if marks greater then 90 print you are applicable for pre medical
Discripition:
By using simple if
statement
Solution:
import java.util.*;
public class Message {
public static void main(String[] args) {
Scanner input= new Scanner(System.in);
System.out.println("Enter the
marks");
int marks=input.nextInt();
if(marks>90)
System.out.println("You are
applicble for per madical");
}}
Output:
No comments:
Post a Comment