[CHALLENGE]🏆 Divide a number so that difference is minimum | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 3

[CHALLENGE]🏆 Divide a number so that difference is minimum

📑 Description: Input an integer n, and then divide it into two integers so that the difference is minimum between the two integers Input: 15 Output: 7 and 8 Input: 16 Output: 7 and 9 🔖 Note: The divided integers cannot be equal Good luck 👍 # Happy coding

7th Dec 2017, 6:54 AM
#RahulVerma
#RahulVerma - avatar
7 Answers
7th Dec 2017, 2:41 PM
Käzî Mrîdùl Høssäîn
Käzî Mrîdùl Høssäîn - avatar
7th Dec 2017, 8:26 AM
Akash Pal
Akash Pal - avatar
+ 4
https://code.sololearn.com/WQk8MJTCGuL5/?ref=app edit: I obfuscated the solution to not give it away.
7th Dec 2017, 7:00 AM
Schindlabua
Schindlabua - avatar
+ 4
7th Dec 2017, 7:57 AM
SAKSHI
SAKSHI - avatar
7th Dec 2017, 12:10 PM
pro100ya
pro100ya - avatar
+ 3
https://code.sololearn.com/cT6T6C3RPuVN/?ref=app
7th Dec 2017, 7:10 AM
DAB
DAB - avatar
7th Dec 2017, 7:58 AM
RZK 022
RZK 022 - avatar