Advertisement
Infiniti_Inter

Количество дней

Feb 2nd, 2016
153
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.45 KB | None | 0 0
  1. Задано одно число — номер месяца в не високосном году. Выведите количество дней в этом месяце.
  2. var
  3. b:shortint;
  4. begin
  5. read(b);
  6. case b of
  7. 1:writeln(31);
  8. 2:writeln(28);
  9. 3:writeln(31);
  10. 4:writeln(30);
  11. 5:writeln(31);
  12. 6:writeln(30);
  13. 7:writeln(31);
  14. 8:writeln(31);
  15. 9:writeln(30);
  16. 10:writeln(31);
  17. 11:writeln(30);
  18. 12:writeln(31);
  19. end;
  20. end.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement