0

how to write a code in cpp that determines whether the input integer is prime number or not??

1st Oct 2019, 9:38 AM
Abdullah Khalid
2 Respuestas
+ 4
Prime numbers are ones that are divisible only by 1 and itself. Use this as the condition to check. The number that can be divisible means its remainder is 0. Give the hints above and you can try to program it by yourself.
1st Oct 2019, 9:59 AM
你知道規則,我也是
你知道規則,我也是 - avatar
+ 1
Go to Code Playground and use the search feature using 'prime' as search term, you will find loads of examples to learn from 👍
1st Oct 2019, 9:52 AM
Ipang