+ 5
How to write a java program to print prime numbers between 1 to 100 by using for-loop?
4 Respuestas
+ 1
use the mathematical logical to solve
Prime number should have only 2 factors. one is theirs vakue and 1.Go ahead on that logic
+ 1
Thank you Sahan and Kuyondo for your reply...😊
0
edit:
keyword=use modulus
if it gives no remainder, its NOT a prime number.
0
sorry mistake i edited my previous answer