added some spaces in quadratic.c as well
This commit is contained in:
parent
098d750e47
commit
ed18a3201a
1 changed files with 2 additions and 2 deletions
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue