https://www.codechef.com/problems/FLOW009

https://www.codechef.com/problems/FLOW009
what is wrong in this code
n=int(input())
i=0
while(i<n):
a=[]
a=input()
a=a.split()
j=0
while(j<2):
a[j]=int(a[j])
j=j+1
if(a[0]>1000):
c=(a[0]*a[1])*0.9
else:
c=(a[0]*a[1])
print©
i=i+1

this looks like python code. Its very hard to read. Please use proper formatting.

submitting python code without indentation :roll_eyes:

Well, you seem to have solved the problem by yourself

Some advice for future posts:

  1. Don’t just copy paste the code in the description instead provide a submission link ( the URLs look like https://www.codechef.com/viewsolution/XXXXXX )
  2. If you did solve it by yourself, update the post to specify that and include what the mistake was and how you fixed it.