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;
- namespace TP_Lab1
- {
- class Program
- {
- static void Main(string[] args)
- {
- MyClass ob = new MyClass();
- ob.EventHundlerError += new MyClass.Error(ob.PrintError);
- ob.EventHundlerLine += new MyClass.Line(ob.PrintLine);
- double a, b, x, step;
- int d, sz;
- Console.Write("a = ");
- a = Convert.ToDouble(Console.ReadLine());
- Console.Write("b = ");
- b = Convert.ToDouble(Console.ReadLine());
- Console.Write("Шаг = ");
- step = Convert.ToDouble(Console.ReadLine());
- Console.Write("Кол-во знаков после запятой = ");
- d = Convert.ToInt32(Console.ReadLine());
- Console.Write("Размер поля = ");
- sz = Convert.ToInt32(Console.ReadLine());
- ob.Title(sz);
- for (x = a; x < b; x+=step)
- {
- ob.Function(sz,d,x);
- }
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment