Advertisement
SMASIF

C# - Data Type Conversion

Mar 10th, 2018
146
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.51 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 DataTypeConversionApp
  8. {
  9.     class Program
  10.     {
  11.         static void Main(string[] args)
  12.         {
  13.             long l = 1000000;
  14.             int i = 100;
  15.  
  16.             l = i;
  17.             i = Convert.ToInt32(l);
  18.             char c = 'a';
  19.             i = c;
  20.             double d = 150.25;
  21.             Console.WriteLine(i);
  22.             Console.ReadKey();
  23.         }
  24.     }
  25. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement