Advertisement
mmayoub

Ex03P027, Activities.cs

Nov 18th, 2021
930
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.49 KB | None | 0 0
  1. using Ex03P9027;
  2. using System;
  3. using System.Collections.Generic;
  4. using System.Text;
  5.  
  6. namespace Ex03P027
  7. {
  8.     // Ex03 - P027
  9.     class Activities
  10.     {
  11.         private Hog[] hogim;
  12.  
  13.         public void printNumberOfRegistered(int num)
  14.         {
  15.             for (int i = 0; i < hogim.Length; i++)
  16.             {
  17.                 if (hogim[i].getRegistered() < num)
  18.                 {
  19.                     Console.WriteLine(hogim[i]);
  20.                 }
  21.             }
  22.         }
  23.     }
  24. }
  25.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement