Advertisement

Main Ad

Java Basic Programming : Exercises practice

Day 1: Write a java program to find the value of specified expression

       1) 101 + 0) / 3
      3) 3.0e-6 * 10000000.1
      4) true && true
      5) false && true
      6) (false && false) || (true && true)
      7) (false || false) && (true && true)

Expected Output :

(101 + 0) / 3)-> 33
(3.0e-6 * 10000000.1)-> 30.0000003
(true && true)-> true
(false && true)-> false
((false && false) || (true && true))-> true
(false || false) && (true && true)-> false

Post a Comment

0 Comments