added some spaces in quadratic.c as well

This commit is contained in:
Nash Brooks 2022-01-23 05:59:49 -05:00
parent 098d750e47
commit ed18a3201a

View file

@ -12,7 +12,7 @@ int main( int argc, char *argv[] ) { //yoinked from the internet argc is number
printf("%f\n", pi); //did i print pi corectly???
if(argc != 4){
if (argc != 4) {
puts("please provide a b c");
return 0; //idk if this is how i should return an error idk @quantum rip my code to shreads
}
@ -26,7 +26,7 @@ int main( int argc, char *argv[] ) { //yoinked from the internet argc is number
deter = (b^2)-(4*a*c);
//deter = 12f;
printf("Deter = %f\n", deter);
if(deter < 0){
if (deter < 0) {
puts("deter is negitve this will result in a imaginary number");
return 0;
}