Computer Science, asked by shalinideva05, 10 months ago

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

Answers

Answered by SidhantVerma77
0

Answer:

I cant understand your question mate.

Explanation:

PLEASE SELECT MY ANSWER AS THE BRAINLIEST ANSWER.

Answered by jobastin
1

Answer:

#include<iostream>

int main(){

 int a;

 std::cin>>a;

 int r=(a%2==0)?1:0;

 if(r==1)

   std::cout<<"Possible";

 else

   std::cout<<"Not possible";

}

Explanation:

Similar questions