import java.util.*;
import java.lang.*;
import java.io.*;

// The main method must be in a class named "Main".
class Main {
    public static void main(String[] args) {
     Scanner sc = new Scanner (System.in);
      
      
     
    
 
  System.out.println("Result check");
     
     System.out.println("enter your exam no.");
     int num= sc.nextInt();
     
     System.out.println("oh great! you score ["+num+"] marks");

     System.out.println("✓Do you want to check you are passed or not in exam [please enter yes or no]");
 
      int yesno= sc.nextInt();
      
     
     
      if(yesno==0)
      
       
        {
           System.out.println("Thanks for your valuable time");
        }
    
    
       else if(yesno==1)
   
   {
       System.out.println("wait");
       
        if (num>=33)
    
       System.out.println("pass");
   
        else

       System.out.println("fail");
       
    }
  
  
  
  
  
  
 
 
 
 
 
 
 
 
 
 
 
 
 
  else 
   {
       System.out.println("invalid input");
   }
   
   
   
   
   
   
   
   
   
   
   
    }
}

Embed on website

To embed this program on your website, copy the following code and paste it into your website's HTML: