bigstep.cpp 380 B

1234567891011121314151617
  1. // bigstep.cpp -- count as directed
  2. #include <iostream>
  3. int main()
  4. {
  5. using std::cout; // a using declaration
  6. using std::cin;
  7. using std::endl;;
  8. cout << "Enter an integer: ";
  9. int by;
  10. cin >> by;
  11. cout << "Counting by " << by << "s:\n";
  12. for (int i = 0; i < 100; i = i + by)
  13. cout << i << endl;
  14. // cin.get();
  15. // cin.get();
  16. return 0;
  17. }