SnowPhoenix347

1.2 Переменные

Oct 23rd, 2019
69
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.69 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 Cslight15
  8. {
  9.     class Program
  10.     {
  11.         static void Main(string[] args)
  12.         {
  13.             int a = 10; //10
  14.             int b = 15 + 25; //40
  15.             int c = a * b + 8; //408
  16.             int d = (5 + 5) / 2; //5
  17.             bool b_a = true; //true
  18.             bool b_b = true != false; //true
  19.             bool b_c = b_a == b_b; //true
  20.             bool b_d = b_a != b_c; //false
  21.             bool b_e = b_a && b_d; //false
  22.             bool b_f = b_e || b_d; //false
  23.             string s = "test" + " " + "test2"; //test test2
  24.         }
  25.     }
  26. }
Add Comment
Please, Sign In to add comment