Answer:
def func1(x, y, z):
return z*3*y - x
x= int(input("Enter x"))
y= int(input("Enter y"))
z= int(input("Enterz"))
solveEquation=func1(x, y, z)
print (solveEquation)
Explanation:
Please check the answer section.
K- 1 x 2 =2
OH- 1 x 2 = 2
Cu- 2
(CIO3)- 6
K- 1 x 2= 2
OH- 2
Cu- 2
(CIO3)- 3 x2=6
2KOH+ Cu(CIO3)2 - 2KCIO3+ Cu(OH)2
Answer:
Written in Python
for num in range(1,1001):
sum=0
for j in range(1,num+1):
if num%j==0:
sum = sum + j
if num == sum:
print(str(num)+" is a perfect number")
Explanation:
This line gets the range from 1 to 1000
for num in range(1,1001):
This line initializes sum to 0 for each number 1 to 1000
sum=0
This line gets the divisor for each number 1 to 1000
for j in range(1,num+1):
This following if condition line checks for divisor of each number
<em> if num%j==0:
</em>
<em> sum = sum + j
</em>
The following if condition checks for perfect number
if num == sum:
print(str(num)+" is a perfect number")