Write a function: fun(int n)
which takes only 1 or 0 as input and returns 0 and 1 respectively.
You have to use only arithmetic operators.
which takes only 1 or 0 as input and returns 0 and 1 respectively.
You have to use only arithmetic operators.
Last edited by Lucifer on Sun May 09, 2010 8:10 pm; edited 1 time in total
Similar topics
Permissions in this forum:
You cannot reply to topics in this forum
|
|