Advertisement
Guest User

Untitled

a guest
Oct 22nd, 2014
151
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.12 KB | None | 0 0
  1. int main()
  2. {
  3.  
  4.  
  5. int x, y, z;
  6.  
  7.     cin >> x >> y >> z;
  8.    
  9. while (x < z)
  10. {
  11.     x += y;
  12.     cout << x;
  13.  
  14. }
  15. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement