0

Program of pronic number

pronic numbers are number which are a product of two consecutive number .for eg 20-4×5 42-6×7 could anyone please give me a hint of creating this program.

21st Sep 2018, 5:28 PM
Vivek Mishra
Vivek Mishra - avatar
6 Answers
+ 4
I'm guessing you are trying to find if an input is pronic, right? Hint 1: sqrt(20) lies between 4 and 5. sqrt(42) lies between 6 and 7. I can give you more hints if you like 😉
21st Sep 2018, 5:43 PM
Kishalaya Saha
Kishalaya Saha - avatar
+ 1
Another hint: Make that quadratic formula help you 😉
21st Sep 2018, 5:56 PM
KrOW
KrOW - avatar
+ 1
my solution Maybe helpful in case of doubt Ask :) https://code.sololearn.com/cln36YZi11Af/?ref=app do not look at my code, compare after writing your own solution :)
21st Sep 2018, 6:15 PM
Daniel (kabura)
Daniel (kabura) - avatar
+ 1
I know, code analysis also helps in understanding the code's behavior :)
21st Sep 2018, 6:40 PM
Daniel (kabura)
Daniel (kabura) - avatar
0
Daniel (kabura) Its not very helpful make a code for someone that probably have to do an assignement because he must think about the problem. We are here for give to he some hints but he must do the coding part
21st Sep 2018, 6:36 PM
KrOW
KrOW - avatar
0
... sure but can help to dont understand the problem and write copied code... This we cannot know then is better dont post full solution but only hints
21st Sep 2018, 6:42 PM
KrOW
KrOW - avatar