Ask Experts Questions for FREE Help !
Ask

What will be the output of the above loop?

Asked Jan 31, 2012, 10:31 AM —
Int num =50;
While (num >0)
{
System.out.println(“Count is “ num);
Num -=10;
}



Check out some similar questions!

What will be the output of the above loop? [ 0 Answers ]

Int num =50; While (num >0) { System.out.println(“Count is “ num); Num -=10; }

To get higher wattage output in a lower output fixture. [ 1 Answers ]

We purchased a Harbor Breeze fan with light fixture, but did not see that the wattage output was only going to be 40 watts. We need more lighting in our room. We have tried bigger watt bulbs but the fixture starts to blink and then goes dim(back to the 40 watt output). How can we change that?

For loop [ 1 Answers ]

How would I design a For loop that displays the following set of 10, 20, 30, 40, 50, ... 1,000?

2dp output restriction, and loop calculation required, with form. [ 5 Answers ]

Hello everyone. I have a form that I have developed and am stuck. The outputs that are displayed should be in 2 decimal places. I have searched for ways to do this, but to no avail have they worked for my piece of code. Please have a look and if you could, suggest a way of making this output...



View more Java questions Search
 
Thread Tools Search this Thread
Search this Thread:

Advanced Search

Add your answer here.

Remove Text Formatting

Undo
Redo
 
Decrease Size
Increase Size
Bold
Italic
Underline
Align Left
Align Center
Align Right
Ordered List
Unordered List
Decrease Indent
Increase Indent
Insert Email Link
Wrap [QUOTE] tags around selected text
Wrap [CODE] tags around selected text
Wrap [HTML] tags around selected text
Wrap [PHP] tags around selected text
Wrap [YOUTUBE] tags around selected text
Notification Type: