Hello,
How can i break a for/while loop when the user enters a specific string?
In the main function, I ask the user to enter 10 strings and the programm should stop when the user enters for example the word 'apple'
Hello,
How can i break a for/while loop when the user enters a specific string?
In the main function, I ask the user to enter 10 strings and the programm should stop when the user enters for example the word 'apple'
if ( strcmp(input,"apple") == 0 )
If you dance barefoot on the broken glass of undefined behaviour, you've got to expect the occasional cut.
If at first you don't succeed, try writing your phone number on the exam paper.