#include <stdio.h>
int main(void)
{
unsigned int
number;
scanf("%u", &number);
switch(number)
case 1:
printf("%s\n", "Понедельник");
break;
}
case 2:
printf("%s\n", "Вторник");
case 3:
printf("%s\n", "Среда");
case 4:
printf("%s\n", "Четверг");
case 5:
printf("%s\n", "Пятница");
case 6:
printf("%s\n", "Суббота");
case 7:
printf("%s\n", "Воскресенье");
return 0;
Copyright © 2025 SCHOLAR.TIPS - All rights reserved.
Answers & Comments
#include <stdio.h>
int main(void)
{
unsigned int
number;
scanf("%u", &number);
switch(number)
{
case 1:
{
printf("%s\n", "Понедельник");
break;
}
case 2:
{
printf("%s\n", "Вторник");
break;
}
case 3:
{
printf("%s\n", "Среда");
break;
}
case 4:
{
printf("%s\n", "Четверг");
break;
}
case 5:
{
printf("%s\n", "Пятница");
break;
}
case 6:
{
printf("%s\n", "Суббота");
break;
}
case 7:
{
printf("%s\n", "Воскресенье");
break;
}
}
return 0;
}