MIPI_BaseC_WebinarFRTK/22_Seminar09/00_scanf_p3.c

13 lines
251 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]="";
//~ scanf("%s%s",s1,s2);
//~ fscanf("%d;%d;%d",a1,a2,a3);
int r = scanf("%[0-9]=%[a-z]", s1, s2);
printf("s1 = %s s2 = %s\n",s1,s2);
return 0;
}