Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- #include <math.h>
- using namespace std;
- int main()
- {
- float a;
- cout << "a= "; cin >> a;
- if (a <= 0)
- {
- cout << "∫(a) = " << 0 << "\n";
- }
- if (a > 0)
- {
- if (a > 0 && a <= 1)
- {
- cout << "∫(a) = " << a << "\n";
- }
- else
- {
- cout << "∫(a) = " << a * a * a << "\n";
- }
- }
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment