DEV Community

Shoxjaxon2008
Shoxjaxon2008

Posted on

veriables

a=15
b=10
c=a+b
print(c)

print("natija:",c)
bu - natijani chiqar
yan biz o'tgan darsda int va str tiplarini o'tgandik .

a=input('Birinchi sonni kiriting: ')
b=input('Ikkinchi sonni kiriting: ')
c=int(a)+int(b)
print('Natija:', c)

a=input('Ismizni kiriting: ')
b=input('yoshizni kiriting: ')
c=str(a)+str(b)
print('Natija:c')

int tipi butun sonlar uchun
str tipi esa matnlar uchun

Top comments (0)