Add Papers Marked0
Paper checked off!

Marked works

Viewed0

Viewed works

Shopping Cart0
Paper added to shopping cart!

Shopping Cart

Register Now

internet library
Atlants.lv library
FAQ
2,49 € Add to cart
Add to Wish List
Want cheaper?
ID number:548927
 
Evaluation:
Published: 14.03.2017.
Language: Latvian
Level: College/University
Literature: n/a
References: Not used
Extract

Risinājuma algoritma analīze:
- Ja skaitlis K ir vienāds ar nulli vai negatīvs, tad aizpildīt pirmos desmit masīva A elementus ar patvaļīgiem veseliem skaitļiem no diapazona no 0 līdz 20.
- Ja skaitlis K ir pozitīvs, tad masīva A pirmajam elementam (elementam A[0]) piešķirt vērtību K, bet otrajam (A[1]) piešķirt vērtību K+1. Nākošo astoņu elementu vērtību (no A[2] līdz A[9]) aprēķināt izmantojot izteiksmi: A[i] = A[i-1]+A[i-2].

Author's comment
Load more similar papers

Atlants

Choose Authorization Method

Email & Password

Email & Password

Wrong e-mail adress or password!
Log In

Forgot your password?

Draugiem.pase
Facebook

Not registered yet?

Register and redeem free papers!

To receive free papers from Atlants.com it is necessary to register. It's quick and will only take a few seconds.

If you have already registered, simply to access the free content.

Cancel Register