Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System;
- namespace ConsoleApp10
- {
- // Ex02 - P026
- class Program
- {
- // part c
- static void gamesList(Game[] a, int age)
- {
- for (int i = 0; i < a.Length; i++)
- {
- if (age >= a[i].getMinAge() && a[i].errorPercent() < 5)
- {
- Console.WriteLine(a[i].getCode());
- }
- }
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement