Advertisement
Guest User

Untitled

a guest
Oct 23rd, 2014
149
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.40 KB | None | 0 0
  1. using System;
  2. class Program
  3. {
  4.     static void Main(string[] args)
  5.     {
  6.         int[] tabel = new int[100];
  7.         int getal = int.Parse(Console.ReadLine());
  8.         int teller = 0;
  9.         while(0 <= getal && getal <100)
  10.         {
  11.             tabel[getal] = tabel[getal]+1;
  12.             getal = int.Parse(Console.ReadLine());
  13.         }
  14.         while(teller < 100)
  15.         {
  16.            
  17.             if(0 < tabel[teller])
  18.             {
  19.                 Console.Write(teller);
  20.             }
  21.             teller++;
  22.         }
  23.     }
  24. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement