write a program In basic 256 to print the first 10 even numbers using for loop.
Answers
Answered by
4
Language:
BASIC-256
Program:
for i=1 to 20
if i%2=0 then
print i
endif
next i
Output:
2
4
6
8
10
12
14
16
18
20
Explanation:
- Line 1: Runs a loop till 20.
- Line 2: prints if even.
Attachments:
Similar questions
Political Science,
2 months ago
Math,
2 months ago
Social Sciences,
2 months ago
Math,
5 months ago
English,
5 months ago
Biology,
11 months ago
Math,
11 months ago