Advertisement
Guest User

Untitled

a guest
Apr 24th, 2018
59
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.81 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 Omregning_af_grader
  8. {
  9. class Program
  10. {
  11. static void Main(string[] args)
  12. {
  13. int L, M, S,;
  14. Console.ForegroundColor = ConsoleColor.Blue;
  15. Console.BackgroundColor = ConsoleColor.Black;
  16. //
  17. {
  18. Console.SetCursorPosition(40, 0);
  19. Console.WriteLine("Priser for Fest");
  20.  
  21.  
  22. Console.Write("Indtast venglist hvilken menu du kunne tænke dig her: ");
  23. int = Convert.ToInt32(Console.ReadLine());
  24.  
  25. if (S)
  26. {
  27. Console.ForegroundColor = ConsoleColor.Green;
  28. Console.WriteLine("Prisen for en stor menu er 450");
  29. }
  30. if (S)
  31. {
  32. Console.ForegroundColor = ConsoleColor.Green;
  33. Console.WriteLine("Prisen for en mellem menu er 350");
  34. }
  35. else
  36. if (S)
  37. {
  38. Console.ForegroundColor = ConsoleColor.Green;
  39. Console.WriteLine("Prisen for en lille menu er 200");
  40.  
  41. }
  42.  
  43.  
  44. Console.ForegroundColor = ConsoleColor.Blue;
  45. Console.Write("Indtast antal menuer du ønsker at købe: ");
  46. Console.WriteLine("Prisen for {0} menuer er {1} kr ,antal ,Pris")
  47. antalbilleter = Convert.ToInt32(Console.ReadLine());
  48.  
  49. Console.ForegroundColor = ConsoleColor.DarkRed;
  50. Console.Write("Tryk på Enter for at afslutte...");
  51. Console.ReadLine();
  52.  
  53. Console.ReadKey();
  54.  
  55. }
  56. }
  57. }
  58.  
  59. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement