hello ,
i have an assignment that is find the single digit sum of any given number.
It have some instructions:-
1) No looping use.
2) No conditional statement use
3) No predefine method use
4) No recursive use
5) Only use one variable
6) Only three operator use i.e.(+,-,%)
Please give me the solution.
i have an assignment that is find the single digit sum of any given number.
It have some instructions:-
1) No looping use.
2) No conditional statement use
3) No predefine method use
4) No recursive use
5) Only use one variable
6) Only three operator use i.e.(+,-,%)
Please give me the solution.
Comment