I have just started learning c++ for like a mont on and off, but i have a problem well its more like y is this doing wat its doing... i though since you can make a program count from 0 to 10 or watever and i can make it count backwards from 10 then i should be able to make it count by 5's..
well this is the only way i could do this
Code:#include <iostream> using namespace std; int main() { for( int x = 0; x < 11; x++ ) { cout<<x * 5 <<endl; } cin.get(); }
now im fine with that but y do i have to use 11 instead of 50. is it because that is tell the program how many times to loop it or wat??