0
Prime number
write a program which take two input from user if the vale are prime number multiply both numbers if they are not prime divide bhot numbers
5 Respostas
0
Something like this?
https://code.sololearn.com/cAy9TGYCNyoX/?ref=app
0
yes this right .but it is too complicated ..
0
can we solve this by...nested if ?
0
Why is this complicated?
It is a simple function returning true if the parameter has no other dividents beneath 1 and itself, that you then use with both inputted numbers. If both return true, you multiplicate, else divide.
Also I cant see how this would work with nested if-statements...
0
thanks