No products in the cart.

How many times the loop will …

CBSE, JEE, NEET, CUET

CBSE, JEE, NEET, CUET

Question Bank, Mock Tests, Exam Papers

NCERT Solutions, Sample Papers, Notes, Videos

How many times the loop will execute and value of num after execution?? int num=5; do { System.out.print("hello world"); num- -; }while(num>2);
  • 5 answers

Nihaal Singh 5 years, 9 months ago

The loop will execute 4 times

Hemant Tiwari 5 years, 10 months ago

Infinite times because n always be greater than 2 as per command

Hemant Tiwari 5 years, 10 months ago

Which language is this ? Python....?

Anushka Sagar 5 years, 10 months ago

Saurabh singh how can u say that? Explain and what is the value of num?

Saurabh Singh 5 years, 10 months ago

Infinite
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