Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System;
- class Progression
- {
- static void Main()
- {
- short counter = 0;
- short term = 2;
- while (counter<10)
- {
- if (term % 2 == 0)
- {
- Console.Write(term + ", ");
- }
- else
- {
- Console.Write(-term + ", ");
- }
- term++;
- counter++;
- }
- Console.Write("\b" + "\b" + " ");
- Console.WriteLine();
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement