Professional Documents
Culture Documents
Question1new PDF
Question1new PDF
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
1/1