0
When I was working with c# the error list said "console name doesn't exit"How do I choose my console style???please answer me😪
43 Answers
+ 3
Taking a keen guess, did you mean to write "Console" ? Because C# is case sensitive, "console" is not the same as "Console".
+ 3
Remove the last } and you should be done :)
I don't see how gender fits into this, but if you feel uncomfortable talking to me you are free to opt not to.
+ 2
class Program
{
static void Main(string[] args)
{
int num1,num2,num3;
float sum,avg;
Console.Write("number1");
num1=Convert.ToInt32(Console.ReadLine());
Console.Write("number2");
num2=Convert.ToInt32(Console.ReadLine());
Console.Write("number3");
num3=Convert.ToInt32(Console.ReadLine());
Console .WriteLine("_____________________");
sum=num1+num2+num3;
avg=sum/3.0f;
Console .WriteLine ("sum={0,10} avg={1,10}", sum ,avg);
Console .ReadKey();
}
}
+ 1
If there's still something that is not working then please share your code so we can help :)
+ 1
All a secret :)
+ 1
Oh dear, there is quite a bit that went wrong... For example
- You signature for Main is incomplete (parameter name and closing parethesis are missing)
- Do not put a dot (.) between the type and the variables
- int.parse is not how you convert a string into a number. Use Convert.ToInt32() for that
- You are closing main too early in line 23
- Console.ReadKey(), not Readkey()
Here is your fixed main function:
+ 1
You're English is terrible 🤣
+ 1
Its secret for my close friends
+ 1
What's the meaning of naveeth?
+ 1
May I say something? Won't you be upset?
+ 1
You can chat on direct profile or message it's comments i think 😅
+ 1
😁☺️😅😅 who told you Asia people are good 😜
+ 1
Any one
0
Yes, I know I wrote the first letter of the console in capital letters and the rest of the letters in lower case, but I do not know why.
0
Thanks where are you from?
0
Are you a man from America?
0
I like to know the gender of the person I am talking to

0
Hi