#840. scanf,printf格式化输入输出
scanf,printf格式化输入输出
阅读以下程序:
void main()
{ int x; float y;
printf("enter x,y:")
scanf("%d%f",&x,&y );
printf("%4.2f",x+y);
}
输入形式 enter x,y: 2 3.4
则输出为( {{ input(1) }} )
阅读以下程序:
void main()
{ int x; float y;
printf("enter x,y:")
scanf("%d%f",&x,&y );
printf("%4.2f",x+y);
}
输入形式 enter x,y: 2 3.4
则输出为( {{ input(1) }} )
By signing up a 羽润编程 universal account, you can submit code and join discussions in all online judging services provided by us.