How can I use the case for the number of the day of the week to display its name in Russian?

  • Do you need a case statement here? Add the days of the week into an array (list) and reach by the number. - Nick Volynkin

1 answer 1

  case x of: 1:writeln('Понедельник'); 2:writeln('Вторник'); 3:writeln('Среда'); 4:writeln('Четверг'); 5:writeln('Пятница'); 6:writeln('Суббота'); 7:writeln('Воскресенье');