Synavos interview question

Can write a function which inputs two ints and check if it is 3 it should return 6 if input is 6 return 3, without using any condition.

Interview Answers

Anonymous

30 Jul 2019

I did not knew.

Anonymous

30 Sept 2019

return 9 - number

Anonymous

15 Oct 2019

Swap them and return

Anonymous

8 Feb 2021

Sir, I have done this in the cycle of looking at celery. Please forgive me . If I am a second semester child now, I will join your company after completing my degree, God willing.Sir, you can help me become a good program .Sir, forgive me if I have done anything wrong

2

Anonymous

13 Aug 2020

we can do this by using Not operater

1