September 2018 1 137 Report
Soal olimpiade

diketahui:

""""""function mangga (rambutan:integer) : integer;
begin
if (rambutan = 1) then mangga := 1 else
if (rambutan mod 2=1) then mangga :=mangga (3*rambutan+1)
else mangga := mangga(rambutan div 2);
end;

function jeruk (anggur, melon:integer) :integer;
begin
if (melon = 1) then jeruk := 0 else
jeruk := mangga(anggur)*anggur+jeruk(anggur,melon-1);
end; """""""

soal
1. berapa hasil pemanggilan fungsi mangga (49)?
a.1
b.7
c.14
d.21
e.49
2. berapa hasil pemanggilan fungsi jeruuk (25,20)

pleas jawabannya untuk olipiade nanti malam
klw asal jawab awas
sertakan penjelasan


More Questions From This User See All

Recommend Questions



Life Enjoy

" Life is not a problem to be solved but a reality to be experienced! "

Get in touch

Social

© Copyright 2013 - 2024 KUDO.TIPS - All rights reserved.