Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System;
- using System.Collections.Generic;
- using System.Linq;
- using System.Text;
- using System.Threading.Tasks;
- using System.IO;
- namespace ConsoleApplication2
- {
- class Program
- {
- static void Main(string[] args)
- {
- StreamWriter txtFile = new StreamWriter(@"D:/brojevi.txt");
- int n = int.Parse(Console.ReadLine());
- for (int i = 1; i <= n; i++)
- {
- txtFile.WriteLine("{0}", i);
- }
- txtFile.Close();
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement