Uses loops to accept and display values.