Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- clc;
- clear;
- disp('Zad. 16')
- n=input('Podaj wartość liczby z przedziału <1,7>');
- while n<1 || n>7
- disp('Zła wartość liczby. Podaj wartość liczby ponownie:')
- n=input('n= ');
- end
- switch n
- case 1
- disp('Poniedziałek')
- case 2
- disp('Wtorek')
- case 3
- disp('Środa')
- case 4
- disp('Czwartek')
- case 5
- disp('Piątek')
- case 6
- disp('Sobota')
- otherwise
- disp('Niedziela')
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement