Yay! First Post! Heres the code:
I don't know why it keeps saying segmentation fault. What seems to be the problem?Code:#include <stdio.h> main(){ char pay='s'; do { scanf ("%c",pay); if (pay=='s'; printf("Salary Paid"); else if pay=='h'; printf("Hourly Pay"); } while (pay=='s'); return 0; }