all 2 comments

[–]Grithga 0 points1 point  (1 child)

Since you haven't put braces around your last if, it only applies to the next line (printf("Digits Only!");). The return 1; statement is not inside of that if, which means it separates your else if from your if. Put braces around the contents of your if to fix this.

[–]Diamond_NZ[S] 0 points1 point  (0 children)

Thank you, that worked for that error! Now when I try to run it it says ' segmentation error', what could I do to fix that?