Video lecture-2

download Video lecture-2

If you can't read please download the document

Transcript of Video lecture-2

1. -2 . 2.

    • 3. 4. ,

5.

    • if else 6. if ...else if 7. switch/case
  • 8.
    • 9.

10.

  • if ( )
    • ;
  • 11. boolean 12.
    • if (4030){ 15. 1; 16. 2; 17. 3; 18. }

    19.

    • if (1) 1; else 2;
    • 1 false 20. else 21. 2

    22.

    • if (x=200) 32. bonus=10; 33. else if (sale>=250) 34. bonus=20; 35. else if (sale>=100) 36. bonus=5; 37. else// 38. bonus=0;//

    39. switch-case

    • if...else if- . : 40. switch (){ 41. case1 : 42. 1;break ; 43. case2: 44. 2;break ; 45. default : 46. 3;break ; 47. }

    48. switch-case

    • c
      • intchar
    • c
      • case - 49.
    • break
      • switch

    50. switch-case

      • case-
    • default -

    51.

    • 52.
      • for 53. while 54. do while 55. for in

    56. For

    • 57. for (int i=0; i