Advertisement
nuggetin

asd

Oct 4th, 2021 (edited)
187
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.61 KB | None | 0 0
  1. using System;
  2.  
  3. namespace DataTypeApp
  4. {
  5.     class DataTypeProgram
  6.     {
  7.         static void Main(string[] args)
  8.         {
  9.             string name = "Firstname Lastname";
  10.  
  11.             DateTime birthDay = new DateTime(2000, 6, 13);
  12.  
  13.             int age = 10;
  14.  
  15.             float height = 170.18f;
  16.  
  17.             char Gender = 'M';
  18.  
  19.             Console.WriteLine("- 5 types of variables with unique datatypes -\n(String) Name: " + name + "\n(DateTime) Birthday: " + birthDay + "\n(int) Age: " + age + "\n(Float/Double) Height: " + height + "\n(Char) Gender: " + Gender);
  20.            
  21.  
  22.  
  23.         }
  24.     }
  25. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement