Click here to read the complete problem statement.
If you need help solving this problem, mention your approach and ask specific questions. Please avoid sharing your code and asking the Community to figure out “what’s wrong”.
I need to know how to submit the code. I have submit 100% tested c program code but after submitting its saying wrong.
i have tested my code in many ide.
I need an example of solved probem>
Please send me a solved code of this problem: Copycat | Toph
@SirajBoss You will have to follow the output specification accurately. You must not print anything extra.
Remove the first printf (printf("Enter a number:");) and remove the extra text from the second printf (printf("Your number is: %d",a); → printf("%d",a);).
What’s wrong with the submit; It always shows me wrong. Is it necessary to match all the lines and letters with your solutions? There are several methods of fixing that problem. I can’t still find where is the problem. Here’s my code block
while True:
try:
user_input = input("Number: ")
converted_input = int(user_input)
output = 0 # dummy value
if converted_input < 200000000:
output = converted_input
print(output)
break
else:
print("Input can't be bigger than 200000000")
continue
except ValueError:
print("Invalid input. Please try again.")