Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System;
- class Sequence
- {
- static void Main()
- {
- int NumB;
- for (int i = 2; i < 12; i++)
- {
- if (i % 2 == 0)
- {
- NumB = i;
- }
- else
- {
- NumB = i * (-1);
- }
- Console.WriteLine(NumB);
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement