write a loop that will display numbers in reverse order from 20 to 0
Programming Logic & Design Comprehensive
9th Edition
ISBN:9781337669405
Author:FARRELL
Publisher:FARRELL
Chapter5: Looping
Section: Chapter Questions
Problem 9RQ
Related questions
Question
100%
write a loop that will display numbers in reverse order from 20 to 0
Expert Solution
Step 1
A loop is used to handle the repeat of statements. They iterate block of codes multiple number of times. C Programming supports three types of loop: for loop, while loop and do-while loop.
A loop in which first condition is tested and execute the loop body if the condition becomes true is called entry controlled loop. While and For loop are entry controlled loop.
A loop in which first execute the loop body then condition is tested and if the condition becomes true then repeat again is called exit controlled loop. do-while is the type of exit controlled loop.
Step by step
Solved in 2 steps
Knowledge Booster
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.Recommended textbooks for you
Programming Logic & Design Comprehensive
Computer Science
ISBN:
9781337669405
Author:
FARRELL
Publisher:
Cengage
Microsoft Visual C#
Computer Science
ISBN:
9781337102100
Author:
Joyce, Farrell.
Publisher:
Cengage Learning,
Programming with Microsoft Visual Basic 2017
Computer Science
ISBN:
9781337102124
Author:
Diane Zak
Publisher:
Cengage Learning
Programming Logic & Design Comprehensive
Computer Science
ISBN:
9781337669405
Author:
FARRELL
Publisher:
Cengage
Microsoft Visual C#
Computer Science
ISBN:
9781337102100
Author:
Joyce, Farrell.
Publisher:
Cengage Learning,
Programming with Microsoft Visual Basic 2017
Computer Science
ISBN:
9781337102124
Author:
Diane Zak
Publisher:
Cengage Learning