ACG

Date -

💡

Dealing With Rank


Basic Overview Steps


2 )

Example Code

We have an interger named rank to help us fetch results. which is entered by you.


            int rank;
            Scanner sc = new Scanner(System.in);
            console.log(stores rank in console);
          

Input box takes a variable(java script) and assigns value to rank variable(in java).


            rank = sc.nextInt();
            console.log(branch.name);
          

Filters best suitable colleges less than 5 seconds. Prints it.(Additionally print button is added you can print it and save a hard copy.)


            if(rank<=54){
              System.out.println("DAAICT");
            }
            ...
          

Some Colleges will always be printed. Vacant seats colleges are printed for rank less than 70000


            if(rank<=70000){
            System.out.println(" Alpha kalol");
            System.out.println("Aditya Birla University");
            System.out.println(" APPOLO Abad");
            System.out.println(" Atmiya Rajkot");
            System.out.println(" Ganpat University");
            System.out.println(" Gyanmanjri Bhavnagar");
            }
            

Entering a invalid char will end up in "Loading..." freeze moment.


            else{
              System.out.println("Can not fetch output , Enter valid input.");
            }