Advertisement
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;
- using System.Threading.Tasks;
- namespace Pin_code_Просто_число
- {
- class Program
- {
- static void Main(string[] args)
- {
- int upperFirst = int.Parse(Console.ReadLine());
- int upperSecond = int.Parse(Console.ReadLine());
- int upperThird = int.Parse(Console.ReadLine());
- for (int i = 1; i <= upperFirst; i++)
- {
- if (i % 2 == 0)
- {
- for (int k = 2; k <= upperSecond; k++)
- {
- if (k == 2 || k == 3 || k == 5 || k == 7)
- {
- for (int l = 1; l <= upperThird; l++)
- {
- if (l % 2 == 0)
- {
- Console.WriteLine($"{i} {k} {l}");
- }
- }
- }
- }
- }
- }
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement