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

Expand the following by using suitable identity (6x-7) (6x+7).. Helo plzz !..
which is not a result of the rising cost of campaigns
I truly don’t understand how I got this wrong
No Western countries are helping African countries fight terrorism. True or false?
It is -10oF outside when the temperature drops 2 degrees, rises 8, and drops 5. What is the current temperature? Plz helpppppppp​
Find the area of the shaded region. Units squared centimeters
find the perimeter ​
To whom does Ántonia say she looks for a model in how to run a household and bring up her children? a. Mrs. Cutter b. Mrs. Harling c. her own mother d. the Wido
How do Henry's figures of speech characterize the British? 1. as argumentative and rude 2. as strong and threatening 3. as sly and threatening 4. as gracious
The number of boys in a school is 334 more than the number of girls. If the total strength of the school is 572, find the number of girls in the school?