我一直试图在Google上查看如何在我的程序中输入一个等式,但却无法找到任何方程式.你如何包括:
x = ( -b + ?b2 - 4ac ) / 2a
Run Code Online (Sandbox Code Playgroud)
在该计划?
这是我的代码:
{
int a, b, c;
float x;
//statements
printf("Enter three integers: ");
scanf("%d %d %d", &a, &b, &c);
//computeforX
x = ( -b + ?b2 - 4ac ) / 2a
printf("The value of x is %.1f", x);
return 0;
}
Run Code Online (Sandbox Code Playgroud)
| 归档时间: |
|
| 查看次数: |
28646 次 |
| 最近记录: |