Page not loading? Try clicking here.
Placeholder

#190

String 2 - Formative Assessment 2 1s - MB

Problems

Initialize five words: "flower", "rose", "lily", "daffodil", and "azalea". Then, write a program that receives a single character as input and prints all words that contain the input character in the second or third position.

On the last line, print the number of words printed.

If no words match, print "0" on the first line only.


Example

l
flower

lily
2

Source

자기주도C언어프로그래밍

You must sign in to write code.