Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- static void Main()
- {
- int number = int.Parse(Console.ReadLine());
- for (int index = 1; index <= number; index++)
- {
- if (index % 3 == 0 || index % 7 == 0)
- {
- continue;
- }
- Console.Write("{0} ", index);
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement