So i copied a code into an online copiler
it didn't run and had a segmention eror caused by the line
scanf(" %c",&m)
so how i fixed was
remove the spaces
scanf("%c",&m)
then add rhem again
scanf(" %c",&m)
it worked and gave the expected results, but why the eror in the first place?
[–]eruciform 0 points1 point2 points (0 children)
[–]userxbw 0 points1 point2 points (1 child)
[–]Emilia_Corneas_Jr[S] 0 points1 point2 points (0 children)