Life, the Universe, and Everything in C, wrong answer problem

,

https://www.codechef.com/viewsolution/28927377

That’s my solution for the problem : Life, the Universe, and Everything

When I submit my solution it says wrong answer, but does not say what is wrong exactly.
can anybody help me in this?

“printf(“Enter numbers(1 or 2 digits)\n”);”
You dont have to print that :slight_smile:

1 Like

ohhh, that’s an error!!!, by the way a new line is also must as per output…

In competitive coding, u must strictly follow th I/O rules as given in format. No printf and useless such print statements to be used. Whatever is asked to print, u must follow it, even paying attention to next lines, cases(YES!=Yes) etc.

1 Like