optimizations
This commit is contained in:
parent
9a0539766c
commit
6836cb073a
2 changed files with 3 additions and 2 deletions
2
makefile
2
makefile
|
@ -1,2 +1,2 @@
|
||||||
all:
|
all:
|
||||||
gcc quadratic.c -lm -o "bin-quadratic.out"
|
gcc quadratic.c -lm -Wall -O3 -o "bin-quadratic.out"
|
||||||
|
|
|
@ -2,7 +2,7 @@
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
#include <math.h>
|
#include <math.h>
|
||||||
|
|
||||||
void main()
|
int main()
|
||||||
{
|
{
|
||||||
system("clear");
|
system("clear");
|
||||||
printf("\n ~~ Quadratic Calculator ~~\n");
|
printf("\n ~~ Quadratic Calculator ~~\n");
|
||||||
|
@ -43,4 +43,5 @@ void main()
|
||||||
|
|
||||||
printf("The zeros are: %f and %f.\n", zero_1_ptr, zero_2_ptr);
|
printf("The zeros are: %f and %f.\n", zero_1_ptr, zero_2_ptr);
|
||||||
};
|
};
|
||||||
|
return 0;
|
||||||
};
|
};
|
||||||
|
|
Loading…
Add table
Reference in a new issue