Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- #include <iomanip>
- #include <math.h>
- #define INH 2.54f
- using namespace std;
- int main()
- {
- int a, b, c;
- cin >> a >> b >> c;
- cout << setw(8) << "inh" << setw(10) << "cm" << endl;
- for (int i = a; i <= b; i += c)
- {
- cout << setw(8) << i;
- cout << setprecision(8) << setw(10) << (float)i * INH << endl;
- }
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement