Advertisement
mmayoub

Ex02P026, Program.cs

Nov 18th, 2021
755
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.43 KB | None | 0 0
  1. using System;
  2.  
  3. namespace ConsoleApp10
  4. {
  5.     // Ex02 - P026
  6.     class Program
  7.     {
  8.         // part c
  9.         static void gamesList(Game[] a, int age)
  10.         {
  11.             for (int i = 0; i < a.Length; i++)
  12.             {
  13.                 if (age >= a[i].getMinAge() && a[i].errorPercent() < 5)
  14.                 {
  15.                     Console.WriteLine(a[i].getCode());
  16.                 }
  17.             }
  18.         }
  19.     }
  20. }
  21.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement