6.4.. Sabrati cifre generisanog Ĩetverocifrenog sluĨajnog broja.
Listing programa:
# 06421124 import random a=random.randint(1000,9999) print("a=",a) h=int(a/1000) s=int((a/100)%10) d=int((a%100)/10) j=a%10 s=h+s+d+j print("suma je=",s)
Index