Untitled

mail@pastecode.io avatar
unknown
csharp
2 years ago
1.2 kB
3
Indexable
Never
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.IO;

namespace botrigoprui
{
    internal class Program
    {
        static void Main(string[] args)
        {
            string path = "C:\\Users\\Adminst\\source\\repos\\botrigoprui\\bin\\Debug\\point.txt";
            string path1 = "C:\\Users\\Adminst\\source\\repos\\botrigoprui\\bin\\Debug\\point 1.txt";
            botrigoprui(1050,path,-15,2);
            botrigoprui(1050, path1, 15,2);
            Console.ReadLine();
        }
         static void botrigoprui(int d, string path, int goprui, int a)
        {
            for (int i = 1; i <= a; i++)
            {
                int d1 = d/a * i +goprui;
                Console.WriteLine(d1);
                string final_string = addChar(Convert.ToString(d1), "//t");
                File.AppendAllText(path, final_string);
            }
        }
        static string addChar (string conntent ,string char1)
        {
            string result = "";
            result = conntent + char1;
            return result;
        }
        
    }
}