Please use C language. not C++ Write a code that repeatedly receives a word and outputs it by connecting the input words
Posted: Sat May 14, 2022 2:29 pm
Please use C language. not C++
Write a code that repeatedly receives a word and outputs it by connecting the input words.
◆ Compare the input word with the current first word and precede it in the order of lexicography
Attach it to the , or attach it to the last.
◆ Exit the program if the word you receive matches the word that currently precedes it.
◆ Input and string output of words are performed in the main statement, comparison and linking functions of words
Please input the word: candy candy Please input the word: banana banana candy Please input the word: apple apple banana candy Please input the word: break apple banana candy break Please input the word: abc abc apple banana candy break Please input the word: abc
Write a code that repeatedly receives a word and outputs it by connecting the input words.
◆ Compare the input word with the current first word and precede it in the order of lexicography
Attach it to the , or attach it to the last.
◆ Exit the program if the word you receive matches the word that currently precedes it.
◆ Input and string output of words are performed in the main statement, comparison and linking functions of words
Please input the word: candy candy Please input the word: banana banana candy Please input the word: apple apple banana candy Please input the word: break apple banana candy break Please input the word: abc abc apple banana candy break Please input the word: abc