<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://wiki.nc.ut.ee/index.php?action=history&amp;feed=atom&amp;title=Function</id>
	<title>Function - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://wiki.nc.ut.ee/index.php?action=history&amp;feed=atom&amp;title=Function"/>
	<link rel="alternate" type="text/html" href="https://wiki.nc.ut.ee/index.php?title=Function&amp;action=history"/>
	<updated>2026-10-30T16:00:09Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.46.2</generator>
	<entry>
		<id>https://wiki.nc.ut.ee/index.php?title=Function&amp;diff=261&amp;oldid=prev</id>
		<title>Pavel: Protected &quot;Function&quot; ([Edit=Allow only administrators] (indefinite) [Move=Allow only administrators] (indefinite))</title>
		<link rel="alternate" type="text/html" href="https://wiki.nc.ut.ee/index.php?title=Function&amp;diff=261&amp;oldid=prev"/>
		<updated>2022-09-04T17:14:29Z</updated>

		<summary type="html">&lt;p&gt;Protected &amp;quot;&lt;a href=&quot;/index.php?title=Function&quot; title=&quot;Function&quot;&gt;Function&lt;/a&gt;&amp;quot; ([Edit=Allow only administrators] (indefinite) [Move=Allow only administrators] (indefinite))&lt;/p&gt;
&lt;table style=&quot;background-color: #fff; color: #202122;&quot; data-mw-interface=&quot;&quot;&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;en&quot;&gt;
				&lt;td colspan=&quot;1&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;1&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Revision as of 17:14, 4 September 2022&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-notice&quot; lang=&quot;en&quot;&gt;&lt;div class=&quot;mw-diff-empty&quot;&gt;(No difference)&lt;/div&gt;
&lt;/td&gt;&lt;/tr&gt;&lt;/table&gt;</summary>
		<author><name>Pavel</name></author>
	</entry>
	<entry>
		<id>https://wiki.nc.ut.ee/index.php?title=Function&amp;diff=260&amp;oldid=prev</id>
		<title>Pavel at 17:14, 4 September 2022</title>
		<link rel="alternate" type="text/html" href="https://wiki.nc.ut.ee/index.php?title=Function&amp;diff=260&amp;oldid=prev"/>
		<updated>2022-09-04T17:14:22Z</updated>

		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;table style=&quot;background-color: #fff; color: #202122;&quot; data-mw-interface=&quot;&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;en&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Revision as of 17:14, 4 September 2022&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;
  &lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 47:&lt;/td&gt;
  &lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 47:&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
  &lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;
  &lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;Также чтобы снизу появлялось сообщение &quot;Хотите еще посчитать? (y=да, no=любой другой символ: &quot; для выхода или продолжения работы с программой&lt;/div&gt;&lt;/td&gt;
  &lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;
  &lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;Также чтобы снизу появлялось сообщение &quot;Хотите еще посчитать? (y=да, no=любой другой символ: &quot; для выхода или продолжения работы с программой&lt;/div&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
  &lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;
  &lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br /&gt;&lt;/td&gt;
  &lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;
  &lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br /&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
  &lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;
  &lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;[https://&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;web&lt;/del&gt;.&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;narva&lt;/del&gt;.ut.ee/index.php&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;/%D0%9F%D1%80%D0%B8%D0%BC%D0%B5%D1%80%D1%8B&lt;/del&gt; &amp;lt;&amp;lt;]&lt;/div&gt;&lt;/td&gt;
  &lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;
  &lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;[https://&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;wiki&lt;/ins&gt;.&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;nc&lt;/ins&gt;.ut.ee/index.php&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;?title=Примеры&lt;/ins&gt; &amp;lt;&amp;lt;]&lt;/div&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>Pavel</name></author>
	</entry>
	<entry>
		<id>https://wiki.nc.ut.ee/index.php?title=Function&amp;diff=233&amp;oldid=prev</id>
		<title>Pavel: Created page with &quot;&lt;pre&gt; using System;  class Program {     public static string CreateFio(string surname, string name, string otchestvo)     {         string fio = surname + &quot; &quot; + name + &quot; &quot; +...&quot;</title>
		<link rel="alternate" type="text/html" href="https://wiki.nc.ut.ee/index.php?title=Function&amp;diff=233&amp;oldid=prev"/>
		<updated>2022-09-04T17:04:24Z</updated>

		<summary type="html">&lt;p&gt;Created page with &amp;quot;&amp;lt;pre&amp;gt; using System;  class Program {     public static string CreateFio(string surname, string name, string otchestvo)     {         string fio = surname + &amp;quot; &amp;quot; + name + &amp;quot; &amp;quot; +...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;&amp;lt;pre&amp;gt;&lt;br /&gt;
using System;&lt;br /&gt;
&lt;br /&gt;
class Program&lt;br /&gt;
{&lt;br /&gt;
    public static string CreateFio(string surname, string name, string otchestvo)&lt;br /&gt;
    {&lt;br /&gt;
        string fio = surname + &amp;quot; &amp;quot; + name + &amp;quot; &amp;quot; + otchestvo;&lt;br /&gt;
        return fio;&lt;br /&gt;
    }&lt;br /&gt;
&lt;br /&gt;
    public static string CreateFioInitials(string surname, string name, string otchestvo)&lt;br /&gt;
    {&lt;br /&gt;
        string fio = surname + &amp;quot; &amp;quot; + name.Substring(0, 1) + &amp;quot;. &amp;quot; + otchestvo.Substring(0, 1) + &amp;quot;.&amp;quot;;&lt;br /&gt;
        //&amp;quot;Substring(0, 1)&amp;quot; -  вырезает первый (позиция 0) символ из строки длинной 1 символ&lt;br /&gt;
        return fio;&lt;br /&gt;
    }&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
    static void Main(string[] args)&lt;br /&gt;
    {&lt;br /&gt;
        string name = &amp;quot;Александр&amp;quot;;&lt;br /&gt;
        string otchestvo = &amp;quot;Сергеевич&amp;quot;;&lt;br /&gt;
        string surname = &amp;quot;Пушкин&amp;quot;;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
        string name2 = &amp;quot;Наталья&amp;quot;;&lt;br /&gt;
        string otchestvo2 = &amp;quot;Николаевна&amp;quot;;&lt;br /&gt;
        string surname2 = &amp;quot;Гончарова&amp;quot;;&lt;br /&gt;
&lt;br /&gt;
        Console.WriteLine(CreateFio(surname, name, otchestvo));&lt;br /&gt;
        Console.WriteLine(CreateFioInitials(surname, name, otchestvo));&lt;br /&gt;
        Console.WriteLine(CreateFio(surname2, name2, otchestvo2));&lt;br /&gt;
        Console.WriteLine(CreateFioInitials(surname2, name2, otchestvo2));&lt;br /&gt;
&lt;br /&gt;
        Console.ReadKey();&lt;br /&gt;
    }&lt;br /&gt;
}&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Задание: Модифицировать программу таким образом, чтобы имя, отчество и фамилию можно было вводить с клавиатуры много раз, а программа выводила их сокращенный вариант. Например Пушкин А. С.&lt;br /&gt;
&lt;br /&gt;
Дополнительно: Дописать программу, что если вместо имени написать &amp;quot;quit&amp;quot;, то программа завершала работу&lt;br /&gt;
&lt;br /&gt;
Модифицировать программу [[Uravnenie]], чтобы вычисления дискриминанта и корней уравнения вычислялись в функции&lt;br /&gt;
&lt;br /&gt;
Также чтобы снизу появлялось сообщение &amp;quot;Хотите еще посчитать? (y=да, no=любой другой символ: &amp;quot; для выхода или продолжения работы с программой&lt;br /&gt;
&lt;br /&gt;
[https://web.narva.ut.ee/index.php/%D0%9F%D1%80%D0%B8%D0%BC%D0%B5%D1%80%D1%8B &amp;lt;&amp;lt;]&lt;/div&gt;</summary>
		<author><name>Pavel</name></author>
	</entry>
</feed>