MIPI_BaseC_WebinarFRTK/22_Seminar09/01_scanf_2_p5.c

13 lines
240 B
C
Raw Normal View History

2024-11-13 09:22:28 +03:00
#include <stdio.h>
#include <stdlib.h>
int main()
{
char s1[100]="", s2[100]="";
int r;
r=scanf("%[0-9]=%[a-z]",s1,s2); //prog.exe < test.txt
printf("r = %d\n",r);
printf("s1 = %s s2 = %s\n",s1,s2);
return 0;
}