Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <stdio.h>
- #include <conio.h>
- #include <math.h>
- int main()
- {
- int i,x;
- float n[800],y=1;
- float A[800];
- float b[800];
- {
- for(x=0;x<800;x++)
- {
- n[x]=pow(y,3)+y+5;
- b[x]=7*pow(y,3)+y+1;
- y++;
- }
- }
- /*for(x=0;x<50;x++)
- {
- printf("%.2f\n",n[x]);
- }*/
- x=0;
- for (i=0;i<800;i++)
- {
- A[i]=b[x]/n[x];
- printf("%f\n",A[i]);
- x++;
- }
- int e= int (A[799]+0.5);
- printf("%d\n",e);
- int m;
- for (m=0;m<100;m++)
- {
- if(e==m)
- {
- printf ("bravo");
- printf (" niz tezi u %d",e);
- getch ();
- return 0;
- }
- }
- printf("niz tezi u beskonacno");
- getch();
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement