Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // Temp.cpp : This file contains the 'main' function. Program execution begins and ends there.
- //
- #include "pch.h"
- #include <iostream>
- int main()
- {
- bool Backwards = true;
- int ChildCount = 15;
- int CountStart = 0;
- int TempTotal = 0;
- int Direction = 1;
- if (Backwards)
- {
- TempTotal = ChildCount - 1;
- CountStart = ChildCount - 1;
- Direction = -1;
- }
- for (int i = CountStart; i != (ChildCount - TempTotal - 2); i += Direction)
- {
- std::cout << i << std::endl;
- }
- system("pause");
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement