Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System;
- class Program
- {
- static void Main(string[] args)
- {
- int[] tabel = new int[100];
- int getal = int.Parse(Console.ReadLine());
- int teller = 0;
- int laagstegetal = getal;
- while(0 <= getal && getal <100)
- {
- if( getal < laagstegetal)
- {
- laagstegetal = getal;
- }
- tabel[getal] = tabel[getal]+1;
- getal = int.Parse(Console.ReadLine());
- }
- if(0 <= laagstegetal && laagstegetal < 100)
- {
- Console.Write(laagstegetal);
- teller = laagstegetal;
- }
- while(teller < 99)
- {
- teller++;
- if(0 < tabel[teller])
- {
- Console.Write(" " + teller);
- }
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement