+ 6
CHALLENGE: Write code that will take a number and give back two numbers that add up to the number given
The code will be given an input and give two numbers that when added together give the number the user gave. e.g. input: 40 output: 38 + 2 = 40 Rules: Has to give a different result each time All languages welcome good luck
12 Answers
+ 3
Here's my answer . Just click submit as many as you want to output random addends..
https://code.sololearn.com/W1NOpB48xANB/?ref=app
+ 9
my code in Python đ
https://code.sololearn.com/c07qsatl6ApA/?ref=app
+ 4
https://code.sololearn.com/cx62r1rW2ixz/?ref=app
+ 3
Like this? :)
https://code.sololearn.com/cr2SL0r0Yee0/?ref=app
+ 3
Check this out,,,
https://code.sololearn.com/cI1Ci1qL79E1/?ref=app
+ 2
Did this, very similar to Ferhat's one https://code.sololearn.com/cJ9Tti7EZVRF/?ref=app
+ 1
Check This Out In C++ program
https://code.sololearn.com/cNp7d9lZriba
+ 1
https://code.sololearn.com/c2ZgPR45MEeZ/?ref=app
And this prints all posibilities:
https://code.sololearn.com/c2kzSUX2EFOA/?ref=app
+ 1
https://code.sololearn.com/cnRY7z9A017v/?ref=app