I recently wrote a program something along the lines of:
I was thinking of doing a program slightly similar to this. When I input a word, it outputs the definition. This is just for the ten page glossary at the back of my Biology textbook. Is there some change I need to make to I/O multi-character strings? Also, how would I have it return to the beginning and prompt for another word once it outputs the definition?Code:#include <stdio.h> char Choice; int main() { printf("Enter (y/n)\n"); scanf("%c", &Choice); if (Choice=='y') { printf("Output for y\n"); } else if (Choice=='n') { printf("Output for n\n"); } return(0); }