Quick actions

cmd+k|ctrl+k

Navigation

Languages

Алексей Парастюк №6

Snippet info

Language

Cpp

Visibility

public

Author

diety

Created

2018-09-26T09:16:41Z

Updated

2018-09-30T15:34:39Z

#include <iostream>
#include <cmath>

using std::cout;
using std::endl;
using std::cin;


int main()
{
    int z;
    int x;
    
    cout << "z = x - (pow (x,3)/3) + (pow(x,5)/5)" << endl;
    cout << "Enter x:\n " << endl;
    
    cin >> x;
    
    z = x - (x / 3) + (x / 5);
    cout << z << endl;
    
    return 0;
}
INFO