Total beginner.I'm learning C++ thru article I've got from web. Basically I'm through with this part:
1 2 3 4 5 6 7 8 9 10 11
//A Program that counts from 1 to 5 Inclusive.
#include <iostream> //std::cout
#include <ostream> //<<, std::endl
int main ()
{
for (int count = 1; count <=5; ++count )
{
std::cout <<count<<std::endl;
}
}
The next one is to write a program that outputs the number 7,6,5,4,3,2,1,0 in that order. Honestly, I'm stuck! Someone with kind soul and available time please help!
All i'm going to say is you know how to increment therefore you should know how to decrement. And with minor changed you can use the above program. Hopefully that will help you.