SHOW:
|
|
- or go back to the newest paste.
| 1 | - | http://pastebin.com/keV8wxpA |
| 1 | + | |
| 2 | using System; | |
| 3 | using System.Collections.Generic; | |
| 4 | using System.Linq; | |
| 5 | using System.Text; | |
| 6 | using System.Threading.Tasks; | |
| 7 | ||
| 8 | namespace ConsoleApplication1 | |
| 9 | {
| |
| 10 | class Program | |
| 11 | {
| |
| 12 | static void Main(string[] args) | |
| 13 | {
| |
| 14 | //Initialization can be regarded as input taken from the console through the | |
| 15 | //"Console.ReadLine()" method. | |
| 16 | int intValue = 0; | |
| 17 | double doubleValue = 0; | |
| 18 | ||
| 19 | //Everything is ok here. | |
| 20 | Console.WriteLine("Double and int: " + (doubleValue==intValue));
| |
| 21 | ||
| 22 | char charValue = '0'; | |
| 23 | ||
| 24 | //Same input, different values. | |
| 25 | Console.WriteLine("Int and char: " + (intValue == charValue));
| |
| 26 | } | |
| 27 | } | |
| 28 | } |