Tech
Forums
Jobs
Books
Events
Interviews
Live
More
Learn
Training
Career
Members
Videos
News
Blogs
Login
Sign Up
Ask Question
2
Reply
write this program in c#?
siva nagarjuna
Aug 22 2016 6:51 AM
415
Reply
Write a program that outputs all possibilities to put + or - or nothing between the numbers 1,2,…,9 (in this order) such that the result is 100. For example 1 + 2 + 3 - 4 + 5 + 6 + 78 + 9 = 100.
array of lements=[1,2,3,4,5,6,7,8,9]
use 3 operators: + - and nothing(78) means nothing between 7 and 8.
print all combinations of elments such that whose sum is 100.
Upload Source Code
Select only zip and rar file.
Post
Reset
Cancel
Answers (
2
)
Next Recommended Forum
save multiple value on label in table format .net c#
how to make linkbutton hide and show place holder