Computer Science, asked by angelparihar698, 5 months ago

write a program In basic 256 to print the first 10 even numbers using for loop.​

Answers

Answered by allysia
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