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

Can someone help me reflected these points across the y-axis: A (-5,1) B (-6,5) C (-1,6) D (-1,4)
f(1)=-11 f(n)=f(n-1)*10. write down the first four terms in this sequence​
How do you do these questions?
What is the graph of y = 2 - ^x please help
A triangle has vertices on the coordinate grid at points A(2, 4), B(2, 9) and C(5, 6) . What is the length, in units, of AB ?
Answer these question for brainlist and 5 stars
define Vasoconstriction in a way a elementary kid would understand
I wil give you the brainliest I need help! Part 2: Distributive Property (Find the equivalent expressions, and then solve) EX. 13(7+8) = 13x7 + 13x8 = 195 7 (
goal in 1year from now
give the full title of the republic act 1425.​