C语言学习之 scanf
// scanf 练习#include "stdafx.h"
int main(int argc, char* argv[])
{
float a;
scanf("%f",&a);
printf("%.2f",a);
return 0;
}
https://img-my.csdn.net/uploads/201302/19/1361244795_8335.png
文档来源:51CTO技术博客https://blog.51cto.com/u_15316467/3311712
页:
[1]