In the following program vertical output is expected using "\v ". Please use \v to get the following output.
1
2
3
4
5
6
7
8
9
10
using System;
namespace _5e11
{
class Table
{
static void Main(string[] args)
{
for (int x = 1; x <= 10; ++x)
{
Console.Write("\v{0}", x);
}
Console.ReadKey();
}
}
}
Loading
Ahmed AhmedPosted Jan 11, 2016, 10:39 PM
Posted Aug 10, 2012, 6:31 AM
VulpesPosted Aug 10, 2012, 6:29 AM
It has no use in Windows console programming except to display the so called 'male' symbol (ASCII 11).
To print stuff on different lines, just use Console.WriteLine rather than Console.Write.