Advertisement
warcislawtez

Untitled

Feb 21st, 2017
94
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.38 KB | None | 0 0
  1. clc;
  2. clear;
  3. disp('Zad. 16')
  4. n=input('Podaj wartość liczby z przedziału <1,7>');
  5. while n<1 || n>7
  6. disp('Zła wartość liczby. Podaj wartość liczby ponownie:')
  7. n=input('n= ');
  8. end
  9. switch n
  10. case 1
  11. disp('Poniedziałek')
  12. case 2
  13. disp('Wtorek')
  14. case 3
  15. disp('Środa')
  16. case 4
  17. disp('Czwartek')
  18. case 5
  19. disp('Piątek')
  20. case 6
  21. disp('Sobota')
  22. otherwise
  23. disp('Niedziela')
  24. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement