Advertisement
mmayoub

Ex02P026, Program.java, 03.11.2021

Nov 5th, 2021
1,123
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.46 KB | None | 0 0
  1. class Program
  2.     {
  3.         static void Main(string[] args)
  4.         {
  5.             Console.WriteLine("Hello World!");
  6.         }
  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.     }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement