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 pinCode_nested_more_
- {
- class Program
- {
- static void Main(string[] args)
- {
- int firstNum = int.Parse(Console.ReadLine());
- int secondNum = int.Parse(Console.ReadLine());
- int thirdNum = int.Parse(Console.ReadLine());
- for (int x1 = 1; x1 <= firstNum; x1++)
- {
- if (x1 % 2 != 0)
- {
- continue;
- }
- for (int x2 = 2; x2 <= secondNum; x2++)
- {
- if (x2 % 2 == 0 && x2!=2)
- {
- continue;
- }
- for (int x3 = 1; x3 <= thirdNum; x3++)
- {
- if (x3 % 2 != 0)
- {
- continue;
- }
- Console.WriteLine($"{x1} {x2} {x3}");
- }
- }
- }
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement