Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- for i = 1:20
- if mod(i,2) == 0
- disp(['Number ',num2str(i),' is Even']);
- else
- disp(['Number ',num2str(i),' is Odd']);
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement