Skip to content
TFE Times

TFE Times

Business, Technology, and Culture

Click here
RPI Leaderboard
University of California Irvine Leaderboard
University of California Irvine Leaderboard
University of Maryland Masters of Economics Leaderboard
Brandeis University Master of Finance Leaderboard 728x90
Click here
MAFI_728x90
MAFI_728x90
Click here
NYU Tandon School of Engineering Leaderboard
University of Maryland Masters of Economics  Leaderboard
  • Business
  • Culture
  • Technology
  • International Rankings
    • Bangladesh
    • Canada
    • Egypt
    • India
    • Nigeria
    • Pakistan
    • Philippines
    • United Kingdom
    • United States of America
  • Masters Rankings
    • Accounting
    • Business Analytics
    • Chiropractic
    • Computer Engineering
    • Computer Science
    • Economics
    • Education
    • Finance
    • Financial Economics
    • Financial Engineering
    • Law
    • Management
    • Marketing
    • MBA
    • Nursing
    • Social Work
  • Resources
    • C++
      • Beginner’s Guide to C++
      • An Introduction to the Imperative Part of C++
      • C++ Code
        • Sorts
        • Binary Search Trees
        • Strings
        • Binary Search
        • Math
        • Quant
        • Puzzles/Games
        • Language Concepts
        • Graphics
        • OS Operations
        • Graphs
      • C++ Full Course
      • C++ Crash Course
      • C++ Interview Questions
      • C++ Q/A
      • C++ Books
      • C++ Free Books
      • C++ Videos
    • C Questions
    • C Programming Tips
    • Java Questions
    • Quant Data Sources
    • Quant Questions

C++: Downward For Loop

Posted on September 1, 2017April 1, 2018 by TFE Times
Posted in C++Tagged c, downward, for loop, loop
Bjarne-stroustrup
 


Write a for loop which writes a countdown from 10 to 0.

for(int i = 10; i >= 0; --i)
  std::cout << i << "\n";

SOURCE

Content is available under GNU Free Documentation License 1.2.

Related

Post navigation

Bjarne-stroustrup
← Previous

C++: Globally Replace Text in Several Files

September 1, 2017
Bjarne-stroustrup
Next →

C++ Full Course Lesson 4: Variables

September 1, 2017

Related Posts

Bjarne-stroustrup

Free C++ Books

Posted on September 1, 2017April 2, 2018
Bjarne-stroustrup

C++: Forward Difference

Posted on September 1, 2017April 1, 2018

C++ Interview Question 11 Answer

Posted on April 17, 2015June 20, 2016
Brandeis Business School
University of California Berkeley Master of Financial Engineering MFE Sideboard
University of Maryland Masters of Economics Sideboard
University of California Irvine Leaderboard
output_8BgzjE
University of Maryland Masters of Economics Sideboard
NYU Tandon School of Engineering Sideboard
Click here
  • Wide aerial view of a nuclear generating complex beside tidal marshes and a broad river, with a large cooling tower, rounded reactor buildings, an electrical switchyard, and rows of transmission towers.

    History of Public Service Enterprise Group

    October 9, 2026September 19, 2026 by TFE Times
  • Illustrated dining collage for Best Restaurants in Ann Arbor: 15 Standout Places to Eat

    Best Restaurants in Ann Arbor: 15 Standout Places to Eat

    October 9, 2026October 2, 2026 by TFE Times
  • The Most Overlooked Feature of Modern Travel Data Plans

    October 9, 2026 by TFE Times
  • Champions under pressure: how every defending champion looked after five games

    October 9, 2026 by TFE Times
  • The History of the Putter: How Golf’s Simplest Club Became Its Most Personal

    October 9, 2026July 13, 2026 by TFE Times
  • 6 Leading GEO Agencies for ChatGPT, Gemini, and AI Search Visibility

    October 8, 2026 by TFE Times
  • A central pharmacy conveyor with blank cartons, a prescription container, and skincare bottles runs between two dark wooden counters, one displaying herbs, apothecary drawers, a brass balance, and a mortar, and the other displaying amber bottles, glass vessels, a scale, and a soda-fountain glass.

    History of Walgreens Boots Alliance

    October 8, 2026September 19, 2026 by TFE Times
  • Illustrative cover for Best Restaurants in Antwerp: 15 Standout Places to Eat

    Best Restaurants in Antwerp: 15 Standout Places to Eat

    October 8, 2026October 2, 2026 by TFE Times
  • How Champagne Became the Drink of Celebration

    October 8, 2026July 13, 2026 by TFE Times
  • Best Restaurants in Reno: 15 Standout Places to Eat — food and city collage

    Best Restaurants in Reno: 15 Standout Places to Eat

    October 7, 2026October 2, 2026 by TFE Times

Copyright © TFE Times, LLC. All Rights Reserved.

Terms of Service | Privacy Policy | Disclaimer

WordPress Theme : Eight Paper by 8Degree Themes