Page not loading? Try clicking here.
Placeholder

#192

String 2 - Formative Assessment 4 1s - MB

Problems

Write a program that receives an integer n (≤10) and then receives n strings. Compare the lengths of the strings and print them in order from the shortest to the longest.

Each string has a length of at most 100 characters.

For strings of the same length, consider the one that comes later in dictionary (ASCII) order as larger.


Example

3

notebook
pencil
eraser
eraser

notebook
pencil

Source

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

You must sign in to write code.