Skip to content
#

second-smallest-number

Here are 2 public repositories matching this topic...

Language: All
Filter by language

Write a C program that that asks positive numbers from the user. The sentinel value is -1 for this program (i.e when the user enters -1 the data entry job finishes). When the user enters -1 and press “Enter” key, your program should print the value of the second smallest element of the sequence. For example if the sequence is {17, 2, 37, 5, 13, …

  • Updated Feb 26, 2020
  • C

Improve this page

Add a description, image, and links to the second-smallest-number topic page so that developers can more easily learn about it.

Curate this topic

Add this topic to your repo

To associate your repository with the second-smallest-number topic, visit your repo's landing page and select "manage topics."

Learn more