using System.Collections.Generic;
using System.Threading.Tasks;
namespace _3egångenGIlltLoggboken
public static void MenyVal()
Console.Write("Choose from the menue: \n");
Console.WriteLine("----------------------------------");
Console.WriteLine("[1]Enter a post.");
Console.WriteLine("[2]Search for a title.");
Console.WriteLine("[3]Print all logs.");
Console.WriteLine("[4]Empty your logs.");
Console.WriteLine("[5]Exit.");
Console.WriteLine("----------------------------------");
Console.Write("Choice: ");
public static void nyRad()
public static void Clear()
static void Main(string[] args)
List<string[]> Loggboken = new List<string[]>();
string str = Console.ReadLine();
int menyVal = Convert.ToInt32(str);
string[] innehåll = new string[2];
Console.WriteLine("Enter a title.");
innehåll[0] = Console.ReadLine();
Console.WriteLine("Enter a post.");
innehåll[1] = Console.ReadLine();
Console.WriteLine("Search: ");
string answer = Console.ReadLine();
for (int i = 0; i < Loggboken.Count; i += 2)
Console.WriteLine("Title: " + Loggboken[i] + "\n" + "Text:" + "\n" + Loggboken[i + 1]);
for (int i = 0; i < Loggboken.Count; i++)
Console.WriteLine(Loggboken[i]);
Console.WriteLine("All logs are deleted.");