原始问题:
求任意三个float数的积的c程序
include <stdio.h>
int main()
{
float a, b, c; // Declaring three float variables
printf("Enter three numbers: "); // Taking input from user
scanf("%f%f%f", &a, &b, &c); // Storing the input in variables a, b and c
float product = a * b * c; // Calculating the product of three numbers
printf("Product of three numbers is: %.2f", product); // Printing the result with two decimal places
return 0; }
Prev:我与担任区长的父亲