import java.util.*;
import java.lang.*;
import java.io.*;
      
      
       class Main 
     {
    public static void main(String[] args) {
     
     
     float x = 7f/2f*9f/2f;
     /*yha par / or * dono ki precedence same h mtlb equality
     toh yha pr associativity use krenge left to right simplify hoga yeah
    check table and notes 
     */
          
            System.out.println(x);
   
   

    // write (v²-u²)/2as  in java  
   

      
           
       float v = 8f;
       float u =6f;
       float a = 3f;
       float s= 4f;
      
       float eq2 = (v*v-u*u)/(2*a*s);
       
        //  direct 

       float eq = (8*8f - 6*6f)/(2*3*4f);
      
       //in calculator (8²-6²)/2*3*4 = 1.16 ans 
      
      float eq4 = 7*49/7+35/7f;  // in calc ans is 54
      
      
      
      
      
        System.out.println(eq);
                 System.out.println(eq2);
            System.out.println(eq4);
       
       
       
   
    }
}

Embed on website

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