小编red*_*ono的帖子

如何在C中加入数学方程

我一直试图在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)

c math equation

1
推荐指数
1
解决办法
3万
查看次数

标签 统计

c ×1

equation ×1

math ×1