Computer Science, asked by queensp73, 7 months ago

Help Plz......
Rewrite the following code in Python after removing
all syntax error(s). Underline each correction done
in the code.
Val = int(input(''Value:''))
Adder = 0
for C in range(1,Val,3)
Adder+=C
if C%2=0:
print (C*10)
Else:
print (C*)
print Adder

#Keep smiling :)

Answers

Answered by rr8814962
22

Answer:

Val = int(input(''Value:''))

Adder = 0

for C in range(1,Val,3):

Adder=C

if C%2==0:

print (C*10)

else:

print (C)

print (Adder)

Attachments:
Answered by wazeed
5

Explanation:

Hope this Answer helps you

Here is your answer

Val = int(input(''Value:''))

Val = int(input(''Value:''))Adder = 0

Val = int(input(''Value:''))Adder = 0for C in range(1,Val,3):

Val = int(input(''Value:''))Adder = 0for C in range(1,Val,3):Adder=C

Val = int(input(''Value:''))Adder = 0for C in range(1,Val,3):Adder=Cif C%2==0:

Val = int(input(''Value:''))Adder = 0for C in range(1,Val,3):Adder=Cif C%2==0:print (C*10)

Val = int(input(''Value:''))Adder = 0for C in range(1,Val,3):Adder=Cif C%2==0:print (C*10)else:

Val = int(input(''Value:''))Adder = 0for C in range(1,Val,3):Adder=Cif C%2==0:print (C*10)else:print (C)

Val = int(input(''Value:''))Adder = 0for C in range(1,Val,3):Adder=Cif C%2==0:print (C*10)else:print (C)print (Adder)

Similar questions