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 TrainingLab
- {
- class Program
- {
- static void Main(string[] args)
- {
- {
- int n = int.Parse(Console.ReadLine());
- int m = int.Parse(Console.ReadLine());
- int stop = int.Parse(Console.ReadLine());
- for (int i = n; i >= m; i--)
- {
- int number = i;
- if (number% 3 == 0 && number % 2 == 0)
- {
- Console.WriteLine("{0}", number);
- }
- if (i == stop)
- {
- break;
- }
- }
- }
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment