Take a int input from user and find the smallest divisor of an integer. | Sololearn: Learn to code for FREE!
¡Nuevo curso! ¡Todo programador debería aprender IA Generativa!
Prueba una lección gratuita
+ 11

Take a int input from user and find the smallest divisor of an integer.

The program takes in an integer and prints the smallest divisor of the integer.

25th Apr 2018, 5:40 AM
Ratnapal Shende
Ratnapal Shende - avatar
2 Respuestas
+ 4
If this is what you are looking for, then check out my code: 12 >> 2 25 >> 5 33 >> 3 https://code.sololearn.com/cZYLeusGNB46/?ref=app
25th Apr 2018, 8:23 AM
Johannes
Johannes - avatar
+ 2
https://code.sololearn.com/c26hcF26nyVw/?ref=app
25th Apr 2018, 6:15 AM
Koushik Naskar
Koushik Naskar - avatar