kisame1313

Task 1.3.5

Jul 11th, 2017
75
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 1.21 KB | None | 0 0
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Text;
  4.  
  5. namespace Task_1_3_5
  6.     {
  7.     class Program
  8.         {
  9.         static int someStaticValue = 0;
  10.  
  11.         static void Main()
  12.             {
  13.             byte byteValue = 1+2;
  14.             sbyte sbyteValue =2-1;
  15.  
  16.             short shortValue = 3*4;
  17.             ushort ushortValue = 10/2;
  18.  
  19.             int intValue = 16%3;
  20.             uint uintValue = 1+2+3;
  21.  
  22.             long longValue = 10-2*3;
  23.  
  24.             decimal decimalValue = 5.6m/3.2m;
  25.             float floatValue = 0.3f*1.2f/1.1f;
  26.  
  27.             bool _boolValue = true||false;
  28.  
  29.             var var8Value = 10>byteValue;
  30.             var _varValue = 5-uintValue;
  31.  
  32.             int someStaticValue = intValue*shortValue;
  33.  
  34.             int a = 10; // 10
  35.             int b = 15 + 25; // 40
  36.             int c = a * b + 8; // 408
  37.             int d = (5 + 5) / 2; // 5
  38.             bool b_a = true; // true
  39.             bool b_b = true && false; // false
  40.             bool b_c = false || true; // true
  41.             bool b_d = true != false; // true
  42.             bool b_e = b_a == b_c; // true
  43.             string s = "test" + " "  + "test2"; // test test2
  44.             }
  45.         }
  46.     }
Advertisement
Add Comment
Please, Sign In to add comment