Advertisement
Guest User

Untitled

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