Patrick and Johnny started to play a card game-XI. In this game, Patrick and Johnny....

Patrick and Johnny started to play a card game-XI. In this game, Patrick and Johnny have to pick one card each. The game rule is as follows

i) If both card numbers are positive, reverse the digits in two card numbers and display their sum

ii) If one card number is negative, reverse the digits in positive card number and reverse the sign of negative card number, finally display their sum

iii) If both card numbers are negative, reverse the sign the two negative card number and display their sum. They approach you and ask for your help.

Can you please help them?

Write a C program to reverse a given two number as per above game rules and display their sum using while loop.