are we required to take the input variables same as that mentioned in the problem??
No! Not at all. You are free to give any kind of names to your variables.
Good variable names account for better readability, but there are programmers who name variables with the name of their ex or anything. Don’t worry!
Variables in problem statements are there to make sense and so that one can be distinguished from the other. You should just name according to your convenience but it should make sense. With sense, I don’t mean something like these
float away; long long ago; char coal;
but in the context of the program.
Hahaha name of their ex, seriously ???
Your example of variable names made my day… float away and long long ago, hahaha…
long long ago,
char coal!! ROTFLOL!!!
Thanks. Glad that the answer was funny and it made you people laugh.
great sense of humor. loved the answer, now looking forward to more of these from you.