number logic

Post your questions, doubts and issues related to C/C++ Programming
no avatar
arul
 
Posts: 1
Joined: Sat Jun 22, 2013 7:39 am

number logic

by arul » Sat Jun 22, 2013 7:50 am

hi
At present am working in java . Now i need to produce the output like Sum of three digits equals the Input.
For example if am giving the input as 4 , i need to display the same 4 as output along with the possible additions of different number like 0+0+4=4 , 1+0+3=4 etc. Please someone help me in this with logical code.

Return to C/C++ Programming