Write a code that ask for a starting integer and stopping integer and then prints out even number till stopping integer.
#here we input value from where program find the even value start_value = int (input("Type a start number you want to find even number of:")) #here we input value till where program find the even value stop_value = int (input("Type an end value to which you want to find even number of:")) #this is loop use to find even number from starting value to end integer for even_num in range(start_value,stop_value,2): #here we print all even numbers print(even_num)
A ladder which is inclined into the wall is 10 m long, and makes an angle of 45 degree with the ground. A ladder reaches 7 m high on the wall and the distance between ground and the foot of the wall is 11 m. Find the angle the ladder make with the wall.
Suppose, inclined wall be hypotenuse (h), a ladder reaching at some point of the wall be perpendicular (p), a distance between a foot of a ladder and wall be base (b), an angle between foot of a ladder and the wall be (ɵ) From question, it is given that, h = 10 m, p = 7 m, b = 11 m, and ɵ = 45 degree. Then, to find the remaining angle, We can use, (180 = 90 + 45 +x) degree, where 180 degree is the total angle of a triangle, 90 degree is the right angle between point of the wall and the ground, 45 degree is the given angle, x degree is the angle we need to find, according to the question. Therefore, by calculation, x = 55 degree.
A and B are two finite sets, where n(A) = 15, n(B) = 14 and n(A∪B) = 7. Find the value of union of A and B.
Given, n(A) = 15, n(B) = 14, n(A∪B) = 7. Now, To find, union of A and B, i.e., n(A∩B) We have, n(A∩B) = n(A) + n(B) - n(A∪B) = 15 + 14 - 7 =22 Hence, the value of union of A and B is 22, respectively.