Computer Science, asked by abhishekmitra293, 2 months ago

a=100 200=b IF a>b: print ("100") ELSE print (A*100) find error in program​

Answers

Answered by BrainlyProgrammer
8

Answer:

Here are you following errors,

  • 200=b. (wrong syntax)
  • IF a>b: (wrong syntax)
  • ELSE. (wrong syntax)
  • Missing colon(:) after if-else
  • print(A*100). (variable A not defined)

Here is the correct códe.

a=100

b=200

if a>b:

print ("100")

else:

print (a*100)

____

Note:

  • Corrected errors is given in bold.
Attachments:
Similar questions