No products in the cart.

write an alternative code using if …

CBSE, JEE, NEET, CUET

CBSE, JEE, NEET, CUET

Question Bank, Mock Tests, Exam Papers

NCERT Solutions, Sample Papers, Notes, Videos

write an alternative code using if that saves the number of comparisions.

if(a==0)

system.out.println("zero")

if(a==1)

system.out.println("one');

if(a==2)

system.out.println("two");

if(a==3)

system.out.println("three");

 

  • 0 answers
http://mycbseguide.com/examin8/

Related Questions

Case study questions of chapter 1
  • 0 answers

myCBSEguide App

myCBSEguide

Trusted by 1 Crore+ Students

Test Generator

Test Generator

Create papers online. It's FREE.

CUET Mock Tests

CUET Mock Tests

75,000+ questions to practice only on myCBSEguide app

Download myCBSEguide App