Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <vcl.h>
- #include <conio>
- #include <iostream>
- #include <math.h>
- using namespace std;
- #pragma hdrstop
- //---------------------------------------------------------------------------
- #pragma argsused
- int main()
- { float q, a[10],x;
- int i;
- for (int i=0; i<10; i++)
- {
- x=1+i;
- a[i]=cos((x*x*x)/(2,1))+cos((x*x)/(1,1))-8,3*sin(3*x-1);
- q=a[0];
- for (int i=1; i<10; i++)
- if (q<a[i]) q=a[i];
- cout << "max="<<q<<endl;
- }
- getch();
- return 0;
- }
- //---------------------------------------------------------------------------
- куда вставить x[10]={1,2,3,4,5,6,7,8,9,10};
- или как присвоить х несколько значений
Add Comment
Please, Sign In to add comment