@BumerangSP
4287 / 1409 / 121
Регистрация: 16.12.2010
Сообщений: 2,941
|
29.10.2012, 14:30
|
|
C++ | 1
2
3
4
5
6
7
8
9
10
| #include <iostream>
#include <cmath>
int main(void)
{
double x;
std::cin>>x;
std::cout<<(x<0 ? 3.2*pow(x,2):(x>=0 && x<=1 ? pow(sin(x+1),2):3*pow(x,2)-1))<<std::endl;
system("PAUSE");
return 0;
} |
|
1
|