Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System;
- using System.Collections.Generic;
- using System.Linq;
- using System.Text;
- namespace Task02
- {
- class Task02
- {
- static void Main(string[] args)
- {
- byte[] numbers = new byte[5];
- for (int i = 0; i < 5; i++)
- {
- numbers[i] = byte.Parse(Console.ReadLine());
- }
- int result=0;
- for (int i = 1; ; i++)
- {
- int count = 0;
- for (int j = 0; j < numbers.Length; j++)
- {
- if (i % numbers[j] == 0)
- {
- count++;
- }
- }
- if (count >= 3)
- {
- result = i;
- Console.WriteLine(result);
- break;
- }
- }
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment