Python Tutorial -2 | Learn Python Programming

Опубликовано: 28 Май 2024
на канале: RABIUL ISLAM Official
43
5

#WAP GREATYEST NO. IN FOUR NO.
a=int(input("enter first no.:-"))
enter first no.:-55
b=int(input("enter second no.:-"))
enter second no.:-66
c=int(input("enter third no.:-"))
enter third no.:-33
d=int(input("enter fourth no.:-"))
enter fourth no.:-13
if (a greater than b and a greater than c and a greater than d):
print("greatest no. is:- ",a)
elif (b greater than c and b greater than d):
print("greatest no. is:- ",b)
elif (c greater than d):
print("greatest no. is:- ",c)
elif( d greater than c):
print("greatest no. is:- ",d)
else:
print("Either any two values or all four values are equal")
OUT PUT
greatest no. is:- 66

#WAP SUM OF NTH NO.
n=int(input("enter limit"))
enter limit5
s=0
for c in range(1,n):
s=c+s
print("the sum is",s)
OUT PUT
the sum is 1
the sum is 3
the sum is 6
the sum is 10


На этой странице сайта вы можете посмотреть видео онлайн Python Tutorial -2 | Learn Python Programming длительностью часов минут секунд в хорошем качестве, которое загрузил пользователь RABIUL ISLAM Official 28 Май 2024, поделитесь ссылкой с друзьями и знакомыми, на youtube это видео уже посмотрели 43 раз и оно понравилось 5 зрителям. Приятного просмотра!