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

what cloud that forms at ground level is called
Which is the best definition of wind? A. the vertical movement of air B. the horizontal movement of air C. the westerly movement of air above the Earth's sur
How do I "Express 125% as a mixed number
What type of government does chad have?
It is the middle of the winter and like everyone else you have caught a cold, your body relies on your ______ to help boost your immune system? plasma red blood
-2/3m=-12 solve please
What important idea does Emily Dickinson want readers to understand after reading "There Is No Frigate Like a Book"? A. Only the poor can truly appreciat
In a cross between a pea plant that has smooth yellow seeds (SsYy) with a second plant of the same genotype, what proportion of the seeds will grow up to produc
Becky lives 5 5/8 miles from school. Steve lives 1 5/9 times as far from the school as Becky. How far does Steve live from the school?a
A disease that causes the joints to swell or become stiff: