Download as pdf or txt
Download as pdf or txt
You are on page 1of 1

1/16/2019

question1.m
1 % Code that prints blue, green and mauve for
2 % specific numbers.
3 a = input('enter the specific number: ');
4 no = a;
5 disp('')
6 if a<5
7 disp('blue')
8 elseif a<=10
9 disp('green')
10 else
11 disp('mauve')
12 end
13
14
15
16
17
18
19
20

Printed for [object Object]


Powered by Octave Online
http://octave-online.net

1/1

You might also like