Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System;
- using System.Collections.Generic;
- using System.Linq;
- using System.Text;
- using System.Threading.Tasks;
- namespace ConsoleApplication1
- {
- class Program
- {
- static void Main(string[] args)
- {
- //Initialization can be regarded as input taken from the console through the
- //"Console.ReadLine()" method.
- int intValue = 0;
- double doubleValue = 0;
- //Everything is ok here.
- Console.WriteLine("Double and int: " + (doubleValue==intValue));
- char charValue = '0';
- //Same input, different values.
- Console.WriteLine("Int and char: " + (intValue == charValue));
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement