single digit sum

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • surendrasharma86
    New Member
    • Apr 2010
    • 1

    #1

    single digit sum

    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.
  • Dheeraj Joshi
    Recognized Expert Top Contributor
    • Jul 2009
    • 1129

    #2
    Volunteers here won't provide a solution, but they will help you if you are stuck in any problem. Try to write code on your own and post back if you have any errors.

    Regards
    Dheeraj Joshi

    Comment

    Working...