假设:a=5,b=2.5,c=7.8,编写程序计算:y=3.14159*a*b/(a b*c)程序怎么写
问题描述:
假设:a=5,b=2.5,c=7.8,编写程序计算:y=3.14159*a*b/(a b*c)程序怎么写
答
#include"stdio.h"
void main()
{
int a=5;
float b=2.5,c=7.8,y;
y=3.14159*a*b/(a*b*c);
printf("y=%f.\n",y);
}