using System; class HelloWorld { static void Main() { int a = 10; int b = Convert.ToInt32(Console.ReadLine()); int c = (a + b); if (c<=90) { Console.WriteLine("Volume has been changed:" (a+b)); } else { Console.WriteLine("Volume has not been changed:" (b)); } } } почему?
Дополнен 1 год назад
main.cs(9,26): error CS0119: Expression denotes a `value', where a `method group' was expected main.cs(13,26): error CS0119: Expression denotes a `value', where a `method group' was expected
class HelloWorld {
static void Main() {
int a = 10;
int b = Convert.ToInt32(Console.ReadLine());
int c = (a + b);
if (c<=90)
{
Console.WriteLine("Volume has been changed:" (a+b));
}
else
{
Console.WriteLine("Volume has not been changed:" (b));
}
}
}
почему?