Answer the question
In order to leave comments, you need to log in
C#. How to change the lines displayed in the console in a console application?
I am just starting to learn C#. Help implement the following functionality.
There is a code:
using System;
class Program
{
static void Main() {
Console.WriteLine("Hello ");
Console.WriteLine("Привет ");
Console.ReadKey();
}
}
Answer the question
In order to leave comments, you need to log in
using System;
using System.Threading;
namespace ConsoleApp1
{
class Program
{
static void Main(string[] args)
{
Console.WriteLine("Hello ");
Console.WriteLine("Привет ");
Thread.Sleep(3000);
Console.SetCursorPosition(6, 0);
Console.WriteLine("world!");
Thread.Sleep(3000);
Console.SetCursorPosition(7, 1);
Console.WriteLine("мир");
}
}
}
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question