owenminney8023 owenminney8023
  • 12-02-2020
  • Mathematics
contestada

Write a loop that reads positive integers from standard input

Respuesta :

fahadisahadam
fahadisahadam fahadisahadam
  • 12-02-2020

Definitely the question is incomplete

Using for loop in java to print positive integers ,let say first 50 integers

So the loop is:

int i ;

for( i= 0; i<= 50; i++ ) {

print (i);

}

The looping will going to start from the 1 and stop to 50

Answer Link

Otras preguntas

Determine whether the set is finite or infinite. {42, 49, 56, ..., 70}
write a function fullwords(s) that returns a string no longer than 20 characters. if the string s is longer than 20 characters, just truncate at the space close
you need vitamins to use the carbohydrates, fats, and proteins you consume and to sustain numerous chemical reactions in your body.
Joel, Ben, and Luke are each wearing a hat with a number on it. Each person adds the two numbers on the other two hats, giving totals of 11, 17, and 22. What is
Earth Science: Q9. What does each letter in the diagram below represent?
7h t: h²k² -7k k² - h²
14a + 2 =? 16a 16a +2 14a + 2
a magician designed an unfair coin so that the probability of getting a head on a flip is $60\%$. if he flips the coin three times, what is the probability that
How do I do this equilibrium constant problem?[Ap Chem]
What do you already know about atoms and the periodic table?