Don't like ads? PRO users don't see any ads ;-)
Guest

Untitled

By: a guest on May 9th, 2012  |  syntax: None  |  size: 0.38 KB  |  hits: 21  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. #include <iostream>
  2. using namespace std;
  3.  
  4.  int main ()
  5.  
  6.  {
  7.      int n,m,z;
  8.      cout << "Enter the starting number : ";
  9.      cin >> n;
  10.      m=n*11;
  11.      
  12.      z=n;
  13.      while (z<m) {
  14.            cout << z << ", ";
  15.            z=z+n;
  16.            
  17.            }
  18.            
  19.            
  20.            system ("PAUSE");
  21.            
  22.            return 0;
  23.            
  24. }