qcode
  • 创作工场专业版,一问多答!更智能、更完整、更原创
  • 这是一个超强内容创作平台,它会写文章、做设计、绘图、敲代码,有问必答!
🔥点击使用-免登录深度版🔥

求任意三个float数的积的c程序

时间2023-05-06 10:37:23 提问来自 辽宁省沈阳市 的网友 分类创作 浏览392
#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; }

不满意?免费深度重写!

免责声明:
以上内容除特别注明外均来源于网友提问,创作工场回答,未经许可,严谨转载。

上一篇 我与担任区长的父亲 下一篇 电极丝有哪些方面的性能需要检测