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.
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 đ
+ 1
Another hint: Make that quadratic formula help you đ
+ 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 :)
+ 1
I know, code analysis also helps in understanding the code's behavior :)
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
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