#include "stdafx.h"
#include <iostream>
#include <math.h>
using namespace std;
int main()
{
double x;
cout << "Enter the argument: " << endl;
cin >> x;
if (x > 0 && x < 1 || x == 1) cout << x << endl;
else if (x == 0 || x < 0) cout << 0 << endl;
else cout << pow(x, 4) << endl;
system("pause");
return 0;
}
#include "stdafx.h"
#include <iostream>
#include <math.h>
using namespace std;
int main()
{
double x;
cout << "Enter the argument: " << endl;
cin >> x;
if (x > 0 && x < 1 || x == 1) cout << x << endl;
else if (x == 0 || x < 0) cout << 0 << endl;
else cout << pow(x, 4) << endl;
system("pause");
return 0;
}