Advertisement
Guest User

1.2

a guest
Aug 22nd, 2019
78
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 1.00 KB | None | 0 0
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Linq;
  4. using System.Text;
  5. using System.Threading.Tasks;
  6.  
  7. namespace CSLight12_День1
  8. {
  9.     class Program
  10.     {
  11.         static void Main(string[] args)
  12.         {
  13.             //  переменные                      //  значения
  14.             int a = 10;                         //  10
  15.             int b = 15 + 25;                    //  40
  16.             int c = a * b + 8;                  //  10 * 40 + 8 = 400 + 8 = 408
  17.             int d = (5 + 5) / 2;                //  (5 + 5) / 2 = 10 / 2 = 5
  18.             bool b_a = true;                    //  true
  19.             bool b_b = true != false;           //  истина это не ложь, значит true
  20.             bool b_c = b_a == b_b;              //  истина это истина, значит true
  21.             bool b_d = b_a != b_c;              //  истина э то истина, значит false
  22.             string s = "test" + " " + "test2";  //  test test2
  23.         }
  24.     }
  25. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement