<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="ru">
		<id>http://nfex.ru/index.php?action=history&amp;feed=atom&amp;title=Csharp%2FCSharp_Tutorial%2FOperator%2FArithmetic_Operators</id>
		<title>Csharp/CSharp Tutorial/Operator/Arithmetic Operators - История изменений</title>
		<link rel="self" type="application/atom+xml" href="http://nfex.ru/index.php?action=history&amp;feed=atom&amp;title=Csharp%2FCSharp_Tutorial%2FOperator%2FArithmetic_Operators"/>
		<link rel="alternate" type="text/html" href="http://nfex.ru/index.php?title=Csharp/CSharp_Tutorial/Operator/Arithmetic_Operators&amp;action=history"/>
		<updated>2026-04-29T19:24:57Z</updated>
		<subtitle>История изменений этой страницы в вики</subtitle>
		<generator>MediaWiki 1.30.0</generator>

	<entry>
		<id>http://nfex.ru/index.php?title=Csharp/CSharp_Tutorial/Operator/Arithmetic_Operators&amp;diff=5783&amp;oldid=prev</id>
		<title> в 15:31, 26 мая 2010</title>
		<link rel="alternate" type="text/html" href="http://nfex.ru/index.php?title=Csharp/CSharp_Tutorial/Operator/Arithmetic_Operators&amp;diff=5783&amp;oldid=prev"/>
				<updated>2010-05-26T15:31:53Z</updated>
		
		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;table class=&quot;diff diff-contentalign-left&quot; data-mw=&quot;interface&quot;&gt;
				&lt;tr style=&quot;vertical-align: top;&quot; lang=&quot;ru&quot;&gt;
				&lt;td colspan=&quot;1&quot; style=&quot;background-color: white; color:black; text-align: center;&quot;&gt;← Предыдущая&lt;/td&gt;
				&lt;td colspan=&quot;1&quot; style=&quot;background-color: white; color:black; text-align: center;&quot;&gt;Версия 15:31, 26 мая 2010&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; style=&quot;text-align: center;&quot; lang=&quot;ru&quot;&gt;&lt;div class=&quot;mw-diff-empty&quot;&gt;(нет различий)&lt;/div&gt;
&lt;/td&gt;&lt;/tr&gt;&lt;/table&gt;</summary>
			</entry>

	<entry>
		<id>http://nfex.ru/index.php?title=Csharp/CSharp_Tutorial/Operator/Arithmetic_Operators&amp;diff=5784&amp;oldid=prev</id>
		<title>Admin: 1 версия</title>
		<link rel="alternate" type="text/html" href="http://nfex.ru/index.php?title=Csharp/CSharp_Tutorial/Operator/Arithmetic_Operators&amp;diff=5784&amp;oldid=prev"/>
				<updated>2010-05-26T12:16:27Z</updated>
		
		<summary type="html">&lt;p&gt;1 версия&lt;/p&gt;
&lt;p&gt;&lt;b&gt;Новая страница&lt;/b&gt;&lt;/p&gt;&lt;div&gt;==Arithmetic Operators==&lt;br /&gt;
&lt;br /&gt;
&amp;lt;p&amp;gt;C# defines the following arithmetic operators:&amp;lt;/p&amp;gt;&lt;br /&gt;
Operator&lt;br /&gt;
Meaning&lt;br /&gt;
+&lt;br /&gt;
Addition&lt;br /&gt;
-&lt;br /&gt;
Subtraction (also unary minus)&lt;br /&gt;
*&lt;br /&gt;
Multiplication&lt;br /&gt;
/&lt;br /&gt;
Division&lt;br /&gt;
%&lt;br /&gt;
Modulus&lt;br /&gt;
++&lt;br /&gt;
Increment&lt;br /&gt;
--&lt;br /&gt;
Decrement&lt;br /&gt;
&amp;lt;p&amp;gt;When / is applied to an integer, any remainder will be truncated.&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;For example, 10/3 will equal 3 in integer division.&amp;lt;/p&amp;gt;&lt;br /&gt;
&lt;br /&gt;
   &lt;br /&gt;
&amp;lt;source lang=&amp;quot;csharp&amp;quot;&amp;gt;using System;&lt;br /&gt;
class MainClass&lt;br /&gt;
{&lt;br /&gt;
    static void Main(string[] args)&lt;br /&gt;
    {&lt;br /&gt;
        int     a,b,c,d,e,f;&lt;br /&gt;
        a = 1;&lt;br /&gt;
        b = a + 6;&lt;br /&gt;
        Console.WriteLine(b);&lt;br /&gt;
        c = b - 3;&lt;br /&gt;
        Console.WriteLine(c);&lt;br /&gt;
        d = c * 2;&lt;br /&gt;
        Console.WriteLine(d);&lt;br /&gt;
        e = d / 2;&lt;br /&gt;
        Console.WriteLine(e);&lt;br /&gt;
        f = e % 2;&lt;br /&gt;
        Console.WriteLine(f);&lt;br /&gt;
    }&lt;br /&gt;
}&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Compound operator==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
   &lt;br /&gt;
&amp;lt;source lang=&amp;quot;csharp&amp;quot;&amp;gt;using System;&lt;br /&gt;
public class CompoundAssApp&lt;br /&gt;
{&lt;br /&gt;
    public static void Main(string[] args)&lt;br /&gt;
    {&lt;br /&gt;
        int nCalc = 10;&lt;br /&gt;
        nCalc += 5;&lt;br /&gt;
        Console.WriteLine(nCalc);&lt;br /&gt;
   &lt;br /&gt;
        nCalc -= 3;&lt;br /&gt;
        Console.WriteLine(nCalc);&lt;br /&gt;
   &lt;br /&gt;
        nCalc *= 2;&lt;br /&gt;
        Console.WriteLine(nCalc);&lt;br /&gt;
   &lt;br /&gt;
        nCalc /= 4;&lt;br /&gt;
        Console.WriteLine(nCalc);&lt;br /&gt;
   &lt;br /&gt;
        nCalc %= 4;&lt;br /&gt;
        Console.WriteLine(nCalc);&lt;br /&gt;
    }&lt;br /&gt;
}&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==postfix and prefix==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
   &lt;br /&gt;
&amp;lt;source lang=&amp;quot;csharp&amp;quot;&amp;gt;using System;&lt;br /&gt;
class MainClass&lt;br /&gt;
{&lt;br /&gt;
  static void Main(string[] args)&lt;br /&gt;
  {&lt;br /&gt;
    int   a,b,c,d,e,f;&lt;br /&gt;
    a = 1;      &lt;br /&gt;
    b = a + 1;    &lt;br /&gt;
    b = b - 1;    &lt;br /&gt;
    c = 1; d = 2;  &lt;br /&gt;
    ++c;      &lt;br /&gt;
    Console.WriteLine(c);&lt;br /&gt;
    --d;      &lt;br /&gt;
        Console.WriteLine(d);&lt;br /&gt;
        &lt;br /&gt;
    e = --c;    &lt;br /&gt;
    Console.WriteLine(e);&lt;br /&gt;
    f = c--;    &lt;br /&gt;
    Console.WriteLine(f);&lt;br /&gt;
  }&lt;br /&gt;
}&amp;lt;/source&amp;gt;&lt;br /&gt;
&amp;lt;pre class=codeResult&amp;gt;2&lt;br /&gt;
1&lt;br /&gt;
1&lt;br /&gt;
1&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==shortcut Operators==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
   &lt;br /&gt;
&amp;lt;source lang=&amp;quot;csharp&amp;quot;&amp;gt;using System;&lt;br /&gt;
class MainClass&lt;br /&gt;
{&lt;br /&gt;
  static void Main(string[] args)&lt;br /&gt;
  {&lt;br /&gt;
    int a, b, c, d, e;&lt;br /&gt;
    a = 1;&lt;br /&gt;
    a += 1;&lt;br /&gt;
    Console.WriteLine(a);&lt;br /&gt;
    b = a;&lt;br /&gt;
    b -= 2;&lt;br /&gt;
    Console.WriteLine(b);&lt;br /&gt;
    c = b;&lt;br /&gt;
    c *= 3;&lt;br /&gt;
    Console.WriteLine(c);&lt;br /&gt;
    d = 4;&lt;br /&gt;
    d /= 2;&lt;br /&gt;
    Console.WriteLine(d);&lt;br /&gt;
    e = 23;&lt;br /&gt;
    e %= 3;&lt;br /&gt;
    Console.WriteLine(e);&lt;br /&gt;
  }&lt;br /&gt;
}&amp;lt;/source&amp;gt;&lt;br /&gt;
&amp;lt;pre class=codeResult&amp;gt;2&lt;br /&gt;
0&lt;br /&gt;
0&lt;br /&gt;
2&lt;br /&gt;
2&amp;lt;/pre&amp;gt;&lt;/div&gt;</summary>
		<author><name>Admin</name></author>	</entry>

	</feed>