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