Здесь Вы можете найти ответы на многие вопросы или задать свой вопрос!
#include <iostream>
#include <cmath>
using namespace std;
int main()
{
int x;
double A;
cout<<"Input data:\ nX = ";
cin>>x;
if (x<0)
A=pow(x,2);
else
if (x==0)
A=sin(x);
A=cos(x);
cout << "Answer : \nA = " << A << endl;
system("pause");
return 0;
}
Объяснение:
cout<<"Input data:\nX = ";
if (x<0){
else if (x==0){
else {
uses crt; var a[1..100] of integer; i,n,count: integer; begincount: =0; read(n); for i: =1 to n do read(a[i]); if a[i]> 0 then inc(count); write(count); end.
2.5 кбайт = 2560 -байт = 20480 бит
20480 : 2560 = 8
ответ: 8 минут.
вроде както так..
Популярные вопросы