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