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

solve for m in E=1/2mv²+mgh
Laura cuts 64 inches of ribbon into two parts and give her mom one part. Laura's part is 28 inches long. Her mom cuts her ribbon into 6 equal pieces. How long i
convert 3π into degrees
I need to write about the target audience for a disney theme park including ideologies
Jana bought a car for $4200 and later sold it for a 30% profit. How much did Jana sell the car for?
A sample of CO2(s) and a sample of CO2(g) differ in their1) chemical compositions2) empirical formulas3) molecular structures4) physical properties
What does the principle of uniformitarianism state?
What does the principle of uniformitarianism state?
Imagine that you are baking brownies for a bake sale at school. Which of the following pans is least likely to cause you to burn the bottoms of your brownies?a
Translate the word phrase into a variable expression. The quotient of a number and 3 is decreased by 1.