Sample input: /this is a comment
Output: /Syntax error
Sample input: //this is a comment
What I want to make is a program that will ask for an input, and then if I type / followed by a string, it will display /Syntax error.
Now if I type // followed by a string, it will not display anything.
I was using getchar to get the input. The if-statement (input=='/') is read, but not (input=='//').
Yeah, Im kinda aware that my logic is wrong in this one, so I was hoping someone here would show me the right approach?