Why there is a problem displaying a pyramid in this way? | Sololearn: Learn to code for FREE!
Новый курс! Каждый программист должен знать генеративный ИИ!
Попробуйте бесплатный урок
0

Why there is a problem displaying a pyramid in this way?

static void Main(string[] args) {Console.WriteLine(' *'); Console.WriteLine(' ***'); Console.WriteLine(' *****'); Console.WriteLine(' *******'); } // error && saying to many characters in the literal......

18th Aug 2019, 3:54 PM
DataStream Cowboy
DataStream Cowboy - avatar
2 ответов
+ 1
Use double quote ( " ) for string literals
18th Aug 2019, 4:09 PM
Agent_I
Agent_I - avatar
0
Thanks....
18th Aug 2019, 5:37 PM
DataStream Cowboy
DataStream Cowboy - avatar