2.2转换形式输出

/*

  • 2.1.c
  • Created on: 2018年10月23日
  •  Author: yangchenglong
    

*/
#include<stdio.h>
int main(void)
{
int aaa,bbb,cccc;
printf(“Enter the phone number[(xxx)xxx-xxxx]:”);
setvbuf(stdout,NULL,_IONBF,0);
scanf("(%d)%d-%d",&aaa,&bbb,&cccc);
printf(“You enterd phone number:%d.%d.%d”,aaa,bbb,cccc);

}

猜你喜欢

转载自blog.csdn.net/weixin_43913303/article/details/85327211