#include <stdio.h> int main( void ) { float a, b; printf( "输入两个浮点数:" ); scanf( "%f%f", &a, &b ); float c = a*b; printf( "%g * %g = %g\n", a, b, c ); }