Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System;
- namespace Unique_PIN_Codes
- {
- internal class Program
- {
- static void Main(string[] args)
- {
- int startFourDigitNumber = int.Parse(Console.ReadLine());
- int endFourDigitNumber = int.Parse(Console.ReadLine());
- for (int i = startFourDigitNumber; i < endFourDigitNumber; i++)
- {
- if (i / 1000 % 2 != 0)
- {
- if (i / 100 % 2 != 0)
- {
- if (i / 10 % 2 != 0)
- {
- if (i % 10 % 2 != 0)
- {
- Console.Write($"{i} ");
- }
- }
- }
- }
- }
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment