–ü—Ä–ĺ–Ī–Ľ–Ķ–ľ–į —Ü–ł–ļ–Ľ–į While | Sololearn: Learn to code for FREE!
Novo curso! Todo programador deveria aprender IA generativa!
Experimente uma aula gr√°tis
0

–ü—Ä–ĺ–Ī–Ľ–Ķ–ľ–į —Ü–ł–ļ–Ľ–į While

–Ě—É–∂–Ĺ–ĺ —Ā–ī–Ķ–Ľ–į—ā—Ć —Ü–ł–ļ–Ľ –Ņ–ĺ —Ą–ĺ—Ä–ľ—É–Ľ–Ķ: a(n) = 5*n - 1 –Ě—É–∂–Ĺ–ĺ —á—ā–ĺ–Ī—č –≤—č–≤–ĺ–ī–ł–Ľ–ĺ—Ā—Ć: a(1) = 4 a(2) = 9 a(3) = 14 a(4) = 19 a(5) = 24 a(6) = 29 a(7) = 34 –Ę–ĺ —á—ā–ĺ —Ź –Ņ—Ä–ĺ–Ī–ĺ–≤–į–Ľ –Ĺ–į–Ņ–ł—Ā–į—ā—Ć: a = 5*n - 1 n = 1 while 1==1: print (a) n = n + 1 if a >= 8: print ("finish")

30th Mar 2020, 11:12 AM
Lice Go
Lice Go - avatar
2 Respostas
0
n = 1 while n < 8: res = 5*n - 1 print ('a(', n, ') = ', res) n += 1 print ("finish")
30th Mar 2020, 11:41 AM
Steppenwolf
Steppenwolf - avatar
0
Steppenwolf dzińôkujńôūüí™ūüĒ•
30th Mar 2020, 7:24 PM
Lice Go
Lice Go - avatar