MIPI_AdvancedC_FRTK/Lect3/19.c

19 lines
278 B
C
Raw Normal View History

2024-11-14 08:45:50 +03:00
#include <stdio.h>
char s1[] = "Hello ";
char s2[] = "world!";
int main(void)
{
char c;
printf("===Enter q to quit===\n");
do
{
printf("Enter a symbol\n");
scanf("%c", &c);
printf("%c\n", c);
}
while (c != 'q');
return 0;
}