amy684
amy684 amy684
  • 22-10-2020
  • Computers and Technology
contestada

Write a for loop that uses the print function to display the integers from 10 down to 1 (including 10 & 1) in decreasing order

Respuesta :

WilliamFancyson
WilliamFancyson WilliamFancyson
  • 23-10-2020

Answer:

ill do this in Java, C# and C++

Java:

       for(int i = 10; i >=1; i--)

       {

           System.out.println(i);

       }

C#:

       for(int i = 10; i >=1; i--)

       {

           Console.WriteLine(i);

       }

C++:

       for(int i = 10; i >=1; i--)

       {

           cout << i << endl;

       }

Answer Link

Otras preguntas

When do Viruses acquire envelopes around their nucleocapsids?
What is a bingus? And why is He so cute?
Againnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnn
1 1/5 + 3 2/5fractions ​
According to Frederick Douglass, why has America never looked blacker to him than on the 4th of July?
`1. the products in a reactions will always have... (a) the same total mass as the reactants (b)the same number of molecules as the reactants (c) less mass than
Who is depicted in the image below?
On a number line, what is the distance between -8 and -2?
PLS HELP FAST ILL GIVE BRAINLIEST When y=48, x=4.2. If the value of y varies directly with x, what is the value of y when the value of x is 10.6?
Solve the system 2x+3y=9 -2x - 9y + -15 sorry if this does not make sense pls help me