Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #define _CRT_SECURE_NO_WARNINGS
- #include <vector>
- #include <iostream>
- #include <string>
- using namespace std;
- int main()
- {
- double a;
- cin >> a;
- if (a > -1 && a < 1) {
- cout << "f(" << a << ") = " << a * a;
- }
- else {
- cout << "f(" << a << ") = " << 1;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement