0

It says that Console.Writeline doesn't have a definition. Help please?

using System; using System.Collections.Generic; using System.Text;   namespace variabler {     class Program     {         static void Main(string[] args)         {    Console.WriteLine("Skriv ett heltal här:");   string inmatat;   inmatat = Console.ReadLine();   int mittHeltal = int.Prase(inmatat);   Console.WriteLine("Mata in ett decimaltal här:");   inmatat = Console.ReadLine();   double mittDecimaltal = double.Parse(inmatat);   Console.Writeline("Summan av talen blir: " + (mittHeltal + mittDecimaltal));

23rd Nov 2016, 1:51 PM
Linus Eriksson
Linus Eriksson - avatar
4 odpowiedzi
+ 2
int mittHeltal = int.Prase(inmatat); ( it should be Parse)
23rd Nov 2016, 1:53 PM
Ozan Karataş
Ozan Karataş - avatar
+ 1
C# is case-sensitive language. Console.WriteLine with uppercase L! :)
23rd Nov 2016, 4:20 PM
Magyar Dávid
Magyar Dávid - avatar
0
Woops, thanks but it still doesn't work...
23rd Nov 2016, 1:57 PM
Linus Eriksson
Linus Eriksson - avatar
23rd Nov 2016, 2:01 PM
Ozan Karataş
Ozan Karataş - avatar