Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System;
- using System.Collections.Generic;
- using System.Text;
- namespace Task_1_3_5
- {
- class Program
- {
- static int someStaticValue = 0;
- static void Main()
- {
- byte byteValue = 1+2;
- sbyte sbyteValue =2-1;
- short shortValue = 3*4;
- ushort ushortValue = 10/2;
- int intValue = 16%3;
- uint uintValue = 1+2+3;
- long longValue = 10-2*3;
- decimal decimalValue = 5.6m/3.2m;
- float floatValue = 0.3f*1.2f/1.1f;
- bool _boolValue = true||false;
- var var8Value = 10>byteValue;
- var _varValue = 5-uintValue;
- int someStaticValue = intValue*shortValue;
- int a = 10; // 10
- int b = 15 + 25; // 40
- int c = a * b + 8; // 408
- int d = (5 + 5) / 2; // 5
- bool b_a = true; // true
- bool b_b = true && false; // false
- bool b_c = false || true; // true
- bool b_d = true != false; // true
- bool b_e = b_a == b_c; // true
- string s = "test" + " " + "test2"; // test test2
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment