Forum Kuliah UAD
Would you like to react to this message? Create an account in a few clicks or log in to continue.

tugas GANYS IKA NILASARI

Go down

tugas GANYS IKA NILASARI Empty tugas GANYS IKA NILASARI

Post  Ganys Ika Nilasari Tue Jun 25, 2013 6:52 pm

nama : ganys ika nilasari
nim : 11006176
*jawaban
x = 2} (global)
y = 5} (global)
coba1(3) => a = 3
x = a+5
x = 3 + 5 = 8 (lokal)
y = x * 2
y = 8 * 2 = 16 (global)
coba2(-3)=> b = -3
x = b * 2
x = -3 * 2 = -6 (global)
y = x + y
y = -6 + 16 = 10 (lokal)
coba1(10) => a = 10
x = a+5
x = 10+5 = 15 (global)
y = x * 2
y = 15 * 2
y = 30
maka x = -6 dan y = 30
Ganys Ika Nilasari
Ganys Ika Nilasari

Jumlah posting : 8
Join date : 19.03.13
Age : 31
Lokasi : Yogyakarta

Kembali Ke Atas Go down

Kembali Ke Atas

- Similar topics

 
Permissions in this forum:
Anda tidak dapat menjawab topik