Computer Science, asked by krisha123480, 6 months ago

Write a program to display the first 20 even numbers on the screen ​

Answers

Answered by surya6791
2

Explanation:

function [results] = Even_Closed_Interval (num,numEven)

% Even Number Counter

% Author: Dylan Dynes

% 09 March 2012

% Counts next 20 even numbers beginning with 100

num = 100;

count = 0;

numEven = 0;

a = mod (x,y)

while count < 20;

if mod == 0;

disp (num)

count = count+1;

end

num = num+1;

end

Similar questions