#include <stdio.h>
#include <stdlib.h>
/* run this program using the console pauser or add your own getch, system("pause") or input loop */
int main(int argc, char *argv[]) {
float shixing=8888.88,shixing1=1111.11; //声明float型数据shixing,shixing1并赋值
printf("实型+实型1=%f",shixing+shixing1); //输出实型和
return 0;
}
![](https://img-blog.csdn.net/20171015122431000?watermark/2/text/aHR0cDovL2Jsb2cuY3Nkbi5uZXQvcXFfNDA0MDQ0NTE=/font/5a6L5L2T/fontsize/400/fill/I0JBQkFCMA==/dissolve/70/gravity/SouthEast)
%f默认为double型