aiaiask.com©

开花即结果 提问即答案

求任意三个float数的积的c程序
原始问题:

求任意三个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; 

}

求任意三个float数的积的c程序
https://www.aiaiask.com/ask/22239.html
AI / 模型DeepSeek
时间 / DATEMay 6, 2023, 10:37 AM
语言zh-CN
IP / 区域辽宁 沈阳