Answer:
FOR i% = 1 TO 100
IF ((i%\3) = i%/3) AND ((i%\7) = i%/7) THEN
PRINT i%
END IF
NEXT i%
Explanation:
Of course using MOD would be cleaner, but another way to check if a number is integer divisable is to compare the outcome of an integer division to the outcome of a floating-point division. If they are equal, the division is an integer division.
The program outputs:
21
42
63
84
It would be so you like chocolate because there is only two options. Yes or no
lst = [12,10,32,3,66,17,42,99,20]
a)
for x in lst:
print(x)
b)
for x in lst:
print(str(x) + " " +str(x**2))
I think this is what you're looking for. Hope this helps!
It's everyone's responsibility to report cyberbullying.
The tone is important whenever you are talking to someone else.
You can literally say anything in virtual world, but you should behave yourself
If everybody knows the common text phrases, then it's fine, but it will be better to talk formally.