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;
- namespace ConsoleApp2
- {
- class Program
- {
- static void Func() //дополнительный метод
- {
- Console.Write("x= ");
- double x = double.Parse(Console.ReadLine());
- double y = 1 / x;
- Console.WriteLine("y({0})={1}", x, y);
- }
- static void Main() //точка входа в программу
- {
- int n = int.Parse(Console.ReadLine());
- for (int i = 0; i < n; i++)
- { Func();
- Func();
- Func();
- }
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement