Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System;
- using System.Linq;
- public class Program
- {
- public static void Main()
- {
- foreach(int i in Enumerable.Range(1,10)){
- Console.WriteLine(i);
- } // 1,2,3,4,5,6,7,8,9,10
- foreach(int i in Enumerable.Range(10,10)){
- Console.WriteLine(i);
- } // 10,11,12,13,14,15,16,17,18,19
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment