Advertisement
Guest User

Untitled

a guest
Nov 13th, 2019
116
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.27 KB | None | 0 0
  1. #include <iostream>
  2. #include <iomanip>
  3.  
  4. using namespace std;
  5.  
  6. const double VALUE = 1.609344;
  7.  
  8. int main() {
  9.     int k, step;
  10.  
  11.     cin >> k >> step;
  12.  
  13.     for (int i = 1; i <= k; i += step) {
  14.         cout << setw(10) << i / VALUE << " | " << i << "\n";
  15.     }
  16. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement