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