+ 1
For loop
How would I write a for loop that once a number is divisible by 3 it would print hello instead of the number?
3 Answers
+ 3
If(number%3==0) print "hello"
+ 2
Make a if inside the for
+ 1
thank you!!
How would I write a for loop that once a number is divisible by 3 it would print hello instead of the number?