Quyidagi ifoda qiymatini so’ralgan sanoq sistemasida toping.
123₈+544₇=?₆
Python dasturlash tilida berilgan quyidagi dastur natijasini aniqlang.
s = 0 for i in range(1, 376, 7): s += i print(s) Python dasturlash tilida berilgan quyidagi dastur natijasini aniqlang. s = 0 for i in range(1, 376, 7):
s += i print(s) Python dasturlash tilida berilgan quyidagi dastur natijasini aniqlang.
import random T = 1000000 s = 0 for t in range(T): a = random.randint(1, 100) b = random.randint(1, 100) if (a * b) % 2 == 0: s += 1 print('%.2f' % (s / T)) Python dasturlash tilida berilgan quyidagi dastur natijasini aniqlang. def f(n): if n <= 2:
return 1 return f(n - 1) + 2 * f(n - 2) print(f(10)) Python dasturlash tilida berilgan quyidagi dastur natijasini aniqlang. s = 0 for i in range(1000): if (i & (i - 1)) == 0: s += 1
print(s) Python dasturlash tilida berilgan quyidagi dastur natijasini aniqlang. s = 0 for i in range(1000): if i % 2 == 0 and i % 3 == 0:
s += 1 print(s) Quyidagi ifoda qiymatini so’ralgan sanoq sistemasida toping.
((400₈-80₁₆)x(100000₂+100₄)):((200₁₆-600₈)x(10₄+100₂))=?₁₀
Quyidagi ifoda qiymatini so’ralgan sanoq sistemasida toping.
8458₉-22111202₃=?₁₀
Python dasturlash tilida berilgan quyidagi dastur natijasini aniqlang. print([1, 2] * 3)