Skip to content
TFE Times

TFE Times

Business, Technology, and Culture

University of California Irvine Leaderboard
Brandeis University Master of Finance Leaderboard 728x90
University of California Irvine Leaderboard
RPI Leaderboard
University of Maryland Masters of Economics  Leaderboard
Click here
NYU Tandon School of Engineering Leaderboard
Click here
MAFI_728x90
University of Maryland Masters of Economics Leaderboard
MAFI_728x90
Click here
  • 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

C_plus_plus_at_woodlands_school

C++: What is the name of the “–>” operator?

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

C++: Find Common Directory Path

Posted on September 1, 2017April 1, 2018
C_plus_plus_at_woodlands_school

C++: What is The Rule of Three?

Posted on September 1, 2017April 1, 2018
Brandeis Business School
Click here
University of Maryland Masters of Economics Sideboard
University of Maryland Masters of Economics Sideboard
output_8BgzjE
NYU Tandon School of Engineering Sideboard
University of California Berkeley Master of Financial Engineering MFE Sideboard
University of California Irvine Leaderboard
  • Teachers’ Salaries In America

    May 21, 2026November 14, 2025 by TFE Times
  • What Should Traders Look for in a Multi-Asset Trading Platform?

    May 21, 2026 by TFE Times
  • Mapped: Writing Systems Of The World

    May 20, 2026November 14, 2025 by TFE Times
  • The Value of Casino Confidence: How to Feel When to Play and When to Walk Away?

    May 19, 2026May 19, 2026 by TFE Times
  • Our Deep Dive Turbo Tenant Review 2026 For DIY Landlords

    May 19, 2026 by TFE Times
  • Flags Of The World: From Least To Most Recognized

    May 19, 2026November 14, 2025 by TFE Times
  • Germany’s Online Casino Market in 2026: Everything You Need to Know Before Playing

    May 18, 2026 by TFE Times
  • Where Workers Are Supporting The Most Seniors

    May 18, 2026November 14, 2025 by TFE Times
  • The Devastating Weight Of Rubble

    May 17, 2026November 14, 2025 by TFE Times
  • 200 Years Of Debt In America

    May 16, 2026November 9, 2025 by TFE Times

Copyright © TFE Times, LLC. All Rights Reserved.

Terms of Service | Privacy Policy | Disclaimer

WordPress Theme : Eight Paper by 8Degree Themes