Advertisement
mussmathias

Untitled

Nov 26th, 2020
485
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 1.00 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 Datatyper
  8. {
  9.     class Program
  10.     {
  11.         static void Main(string[] args)
  12.         {
  13.             // Start
  14.  
  15.             /* Datatyper
  16.              (Type) (Navn) = (værdi)
  17.              Typer: int, float, double og char
  18.              Int: Heltals værdier
  19.              float: Kommatal
  20.              double: Kommatal
  21.              chat: Karakter (Bogstaver) */
  22.  
  23.             // Input
  24.             int intone = 1;
  25.             double whatever = 11.23;
  26.             char bogstav1 = 'L';
  27.             char bogstav2 = 'u';
  28.             char bogstav3 = 'k';
  29.  
  30.             // Info
  31.             Console.WriteLine(intone);
  32.             Console.WriteLine(whatever);
  33.             Console.Write(bogstav1);
  34.             Console.Write(bogstav2);
  35.             Console.Write(bogstav3);
  36.  
  37.             // Lukker ikke
  38.             Console.ReadKey();
  39.  
  40.             //Slut
  41.         }
  42.     }
  43. }
  44.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement