0

Which function is used to write the numbers from 1 to 100

Series of prime numbers. Instead of writing all numbers from 1 to 100 ....which function we can use to write this numbers

14th Oct 2016, 2:45 AM
owaish mansuri
owaish mansuri - avatar
2 Réponses
0
u can use while loop or for loop to print
14th Oct 2016, 4:50 AM
Thai-Sang Trinh Tran
Thai-Sang Trinh Tran - avatar
- 3
use a loop and check the modulus of the numbers. if x%==(1/2)x don't print them. I believe XD
14th Oct 2016, 6:19 AM
Justin Zeh
Justin Zeh - avatar