🌈 style:
This commit is contained in:
@@ -1,9 +1,9 @@
|
||||
#include <math.h>
|
||||
#include <stdio.h>
|
||||
#include <stdlib.h>
|
||||
#include <math.h>
|
||||
|
||||
#define WEIGHT 3.0e-23
|
||||
#define KQ 950
|
||||
#define KQ 950
|
||||
|
||||
static void water(void)
|
||||
{
|
||||
@@ -69,8 +69,8 @@ void root(void)
|
||||
exit(1);
|
||||
}
|
||||
disc = b * b - 4 * a * c;
|
||||
p = -b / 2 * a;
|
||||
q = sqrt(disc) / 2 * a;
|
||||
p = -b / 2 * a;
|
||||
q = sqrt(disc) / 2 * a;
|
||||
|
||||
x1 = p + q;
|
||||
x2 = p - q;
|
||||
@@ -79,13 +79,13 @@ void root(void)
|
||||
printf("x2 = %f\n", x2);
|
||||
}
|
||||
|
||||
int main()
|
||||
int main( )
|
||||
{
|
||||
// water();
|
||||
|
||||
// area();
|
||||
|
||||
root();
|
||||
root( );
|
||||
|
||||
exit(0);
|
||||
}
|
||||
Reference in New Issue
Block a user