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

Which of these are types of retail ownership? (Select all that apply.) Independent Establishment Business Lease Corporate Chain Franchise
I need a drawing in the cross contour style for my beginner's art class. I attached a few examples. Appreciate any help (:
Are enzymes made out of carbohydrates
Given f(x) = 6(1+ x), what is the value of f(-6) ?
What are some words that have the root “cred” in them?
Questions about Connecticut Colony Name: Connecticut Year it was founded: Reasons the colony was founded: Climate of the colony: Major landforms of the colony:
please answer I have 56 minutes left Which demonstrates a positive impact of chemistry on society understanding of how diseases are transmitted identification a
part b please help giving 37 points
The geography of the Fertile Crescent affected the growth of Mesopotamian civilizations by: A. stopping any civilization from creating an empire. B. making trad
Solve !! Help guys (9.6 x 10 ^-8) / (2x10 ^ -15)