Advertisement
Guest User

Untitled

a guest
Jan 23rd, 2015
283
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.35 KB | None | 0 0
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Linq;
  4. using System.Text;
  5. using System.Threading.Tasks;
  6.  
  7. class Sequence
  8. {
  9. public static void Main()
  10. {
  11. int NumberToPrint;
  12.  
  13. for (int i = 2; i <=17; i++)
  14. {
  15. if (i % 2 == 0)
  16. {
  17. NumberToPrint = i;
  18. }
  19. else
  20. {
  21. NumberToPrint = i * (-1);
  22. }
  23. }
  24. }
  25. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement