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 Datatyper
- {
- class Program
- {
- static void Main(string[] args)
- {
- // Start
- /* Datatyper
- (Type) (Navn) = (værdi)
- Typer: int, float, double og char
- Int: Heltals værdier
- float: Kommatal
- double: Kommatal
- chat: Karakter (Bogstaver) */
- // Input
- int intone = 1;
- double whatever = 11.23;
- char bogstav1 = 'L';
- char bogstav2 = 'u';
- char bogstav3 = 'k';
- // Info
- Console.WriteLine(intone);
- Console.WriteLine(whatever);
- Console.Write(bogstav1);
- Console.Write(bogstav2);
- Console.Write(bogstav3);
- // Lukker ikke
- Console.ReadKey();
- //Slut
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement