fork download
  1. #include <stdio.h>
  2.  
  3. int main(void) {
  4. // your code goes here#include <stdio.h>
  5.  
  6. int a,b;
  7. printf("请输入两个数据:");
  8. scanf("%2d%2d",&a,&b);
  9. printf("a=%d,b=%d\n",a,b);
  10. return 0;
  11. }
  12.  
Success #stdin #stdout 0.01s 5276KB
stdin
12 56
stdout
请输入两个数据:a=12,b=56