Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System;
- class MembersOfSequence
- {
- static void Main()
- {
- int membersCount = 10;
- int i;
- Console.WriteLine("The first " + membersCount + " members of the sequence are:");
- for (i = 1; i <= membersCount; i++)
- {
- Console.WriteLine(i + ". " + (i + 1) * Math.Pow((-1), (i + 1)));
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment