Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- double n = double.Parse(Console.ReadLine());
- double y = 0;
- double hr = 0;
- for (int i = 1; i < n; i++)
- {
- hr = 1/n;
- y += i + hr;
- }
- Console.WriteLine("Значэнне выражэння:" + y);
- Console.ReadLine();
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement