Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <stdio.h>
- #include <string.h>
- void input_loop()
- {
- char input[100];
- while (strcmp(input, "quit")) {
- printf("Enter a string: ");
- scanf("%s", input);
- }
- }
- int main()
- {
- input_loop();
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment