Computer Science, asked by shalinigowda8585, 8 months ago

Raj in Wonderland
Back to lesson
Section 1
1. Raj in wonderland
QUESTION 1 OF 1
Raj in wonderland
An island called “Wonderland” is filled with treasures. Raj is trying to get the treasure. To get it, he has to reach the end of the snow land in the island but got puzzled in the mid-way by a hint he got there. The hint is stating that to cross the snow land he has to jump on the ice stones which is of pairs else he will be drowned in the cold river. He has to check whether the number of ice stones is in pairs or not. Suggest him a logic to check the pairs of stones and say whether he can get the treasure or not.
The input should be an integer. The output should be either Possible or Not possible.

[Hint : Use ternary operator]

Case 1
Case 2
Case 3
Input (stdin)
122

Output (stdout)
Possible
(C++)
1


Compile to see the output

Answers

Answered by divyanshtiwarivk
2

I WILL GIVE ANSWER BUT PLEASE FOLLOW ME AND MARK ME AS BRAINLLIST  SO THAT I AM GIVING POINT EVERYDAY FREE

Similar questions