Thursday, Dec. 17, 11: 59 p m. Note: Submission only via e-class is acceptable



Download 33,73 Kb.
Sana05.07.2021
Hajmi33,73 Kb.
#109682
Bog'liq
Lab Assignment-8



Submission due: Thursday, Dec. 17, 11:59 p.m.

Note: 1. Submission only via E-CLASS is acceptable (If you have any issue with E-CLASS, Please consult IT Dept. )
2. Comments should be included in your source code; otherwise, your mark will be ZERO!!
3. Do not plagiarize on doing your work, if we catch student doing so, he/she will get ZERO for the Assignment.

Lab Assignments – Object Oriented Programming 1
Lab Assignment -8
1. Calculate the x y using tail recursion.

{Hint: Write recursive function to calculate x to the power y)

2. Find sum of natural numbers using recursion



{Hint: Find sum 1+2+3+4+5+6……….+n

Using recursion.

Ask Input n form user.

}

3. Display Fibonacci Series Using Recursion.



{Write a recursive function to Display Fibobacci Series upto n terms.

Ask Input n form user.

}

4. Find G.C.D for two integers using recursion



{

The greatest common divisor (GCD), of two numbers is the largest number that divides them both. For instance, the greatest common factor of 20 and 15 is 5, since 5 divides both 20 and 15 and no larger number has this property. }
Download 33,73 Kb.

Do'stlaringiz bilan baham:




Ma'lumotlar bazasi mualliflik huquqi bilan himoyalangan ©hozir.org 2024
ma'muriyatiga murojaat qiling

kiriting | ro'yxatdan o'tish
    Bosh sahifa
юртда тантана
Боғда битган
Бугун юртда
Эшитганлар жилманглар
Эшитмадим деманглар
битган бодомлар
Yangiariq tumani
qitish marakazi
Raqamli texnologiyalar
ilishida muhokamadan
tasdiqqa tavsiya
tavsiya etilgan
iqtisodiyot kafedrasi
steiermarkischen landesregierung
asarlaringizni yuboring
o'zingizning asarlaringizni
Iltimos faqat
faqat o'zingizning
steierm rkischen
landesregierung fachabteilung
rkischen landesregierung
hamshira loyihasi
loyihasi mavsum
faolyatining oqibatlari
asosiy adabiyotlar
fakulteti ahborot
ahborot havfsizligi
havfsizligi kafedrasi
fanidan bo’yicha
fakulteti iqtisodiyot
boshqaruv fakulteti
chiqarishda boshqaruv
ishlab chiqarishda
iqtisodiyot fakultet
multiservis tarmoqlari
fanidan asosiy
Uzbek fanidan
mavzulari potok
asosidagi multiservis
'aliyyil a'ziym
billahil 'aliyyil
illaa billahil
quvvata illaa
falah' deganida
Kompyuter savodxonligi
bo’yicha mustaqil
'alal falah'
Hayya 'alal
'alas soloh
Hayya 'alas
mavsum boyicha


yuklab olish