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 ConsoleApplication1
- {
- class Program
- {
- private static void Main(string[] args)
- {
- int limit = Convert.ToInt32(Console.ReadLine());
- for (int i = 1; i <= limit; i++)
- {
- if (i % 3 == 0 && i % 5 == 0)
- {
- Console.Write("SEIPDotNet ");
- continue;
- }
- if (i % 3 == 0)
- {
- Console.Write("SEIP ");
- continue;
- }
- if (i % 5 == 0)
- {
- Console.Write("DotNET ");
- continue;
- }
- else
- {
- Console.Write(" " + i + " ");
- }
- }
- Console.ReadKey();
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement