Video 9(ch2)

Yash
0

 



Program:-




public class Main {

 public static void main(String[] args) {

  //precendencw and associativity

  int a = 6*5-34/2;

  /*

  =30-34/2

  =30-17

  =13

  */

  int b = 60/5-34*2;

  /*

  =12-34*2

  =12-68

  -56

  */

  System.out.println(a);

  System.out.println(b);

  //Quick quiz

  int x = 10;

  int y =2;

  int k = (x - y) / 2;

  System.out.println(k);

  int c =5;

  int d =1;

  int e =4;

  int l =(d*d - 4*c*e)/(2*c);

  System.out.println(l);

  int f =5;

  int g =5;

  int m =f*f - g*g;

  System.out.println(m);

  int h =10;

  int i=7;

  int j=5;

  int n =(h*i )- j;

  System.out.println(n);

 }

}


Video link :-

https://youtu.be/vh16INx13h4?si=UgCS7Iyn2iijQAvs

Tags

Post a Comment

0 Comments
Post a Comment (0)
To Top