India Languages, asked by madgril17, 1 month ago

Find the programs' errors and tell me the error, the type of error, and the correction.
1)
Num1= 7
Num2=8
Sum = num1 + Num2

2)
num = float(input("Enter a number: "))
if num < 0:
print("Positive number")
elif num == 0
print("Zero")
else:
Print("Negative number")

3)
num1 = float(input("Enter first number: "))
num2 = float(input("Enter second number: "))
num3 = float(input("Enter third number: "))
if (num1 <= num2) and (num1 <= num3)
largest = num1
Elif (num2 >= num1) and (num2 >= num3):
largest == num2
else:
largest = num3
print("The largest number is", largest)

Answers

Answered by kelly324141
1

Answer:

53161 {66 {5 = 23}^{?} }^{2}

थतमय

रदर

Answered by Anonymous
0

Given :-

A rational number is such that when we multiply it by 5/2 and add 2/3 to the product, we will get -7/12.

To Find :-

What's the number?

Solution :-

Let the Rational Number be x.It’s given that when we multiply it by 5/2 and add 2/3 to the product, we will get -7/12.

⠀⠀⠀⠀⠀\small\underline{\pmb{\sf According \: to \: the \: question  :-}}\\

\mathsf{\:  \: \:  \:  \:  \:  \: \:\pink{ :\implies \bigg(\dfrac{5x}{2} + \dfrac{2}{3}\bigg) = -\dfrac{7}{12}}}\\

\mathsf{\:  \: \:  \:  \:  \:  \: \: :\implies \bigg[\dfrac{3(5x) + 2(2)}{6} \bigg] = -\dfrac{7}{12}}\\

\mathsf{\:  \: \:  \:  \:  \:  \: \: :\implies \bigg[\dfrac{15x + 4}{6} \bigg] =- \dfrac{7}{12}}\\

\mathsf{\:  \: \:  \:  \:  \:  \: \: :\implies 12(15x + 4) = - 6\times 7}\\

\mathsf{\:  \: \:  \:  \:  \:  \: \: :\implies 180x  + 48 = - 42}\\

\mathsf{\:  \: \:  \:  \:  \:  \: \: :\implies 180x = - 42 - 48}\\

\mathsf{\:  \: \:  \:  \:  \:  \: \: :\implies 180x = -90}\\

\mathsf{\:  \: \:  \:  \:  \:  \: \: :\implies x= \dfrac{-90}{180}}\\

\mathsf{\:  \: \:  \:  \:  \:  \: \: :\implies x= \cancel{\dfrac{-90}{180}}}\\

\mathsf{\:  \: \:  \:  \:  \:  \: \: \pink{:\implies x= \dfrac{-1}{2}}}\\

\therefore\:\underline{\textsf{ The rational number is  \textbf{-1/2}}}.\\

Similar questions