Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /*
- * Created by SharpDevelop.
- * User: 10.A-I
- * Date: 2018.12.17.
- * Time: 8:13
- *
- * To change this template use Tools | Options | Coding | Edit Standard Headers.
- */
- using System;
- using System.IO;
- namespace nagyarnold1217
- {
- class Program
- {
- public static void Main(string[] args)
- {
- using(StreamReader olvas= new StreamReader("inttomb1.txt")){
- int[] fileolvasas;
- int i;
- i=0;
- fileolvasas= new int[10];
- for (i = 0; i < fileolvasas.Length; i++) {
- fileolvasas[i] = Convert.ToInt32(olvas.ReadLine());
- }
- Array.Sort(fileolvasas);
- Console.WriteLine("Helyes sorrendbe");
- using(StreamWriter iras= new StreamWriter("forditott.txt")){
- for (i = 0; i < fileolvasas.Length; i++) {
- Console.WriteLine(fileolvasas[i]);
- iras.WriteLine("Helyes sorrendben");
- iras.WriteLine(fileolvasas[i]);
- }
- }
- Console.ReadKey(true);
- }
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement