C#.Net in Tamil Part 9 – Number Formatting

0
9



**ASP.Net Project Training**,
குறைந்த விலையில். தொடர்புக்கு +91 9600226778
C# Code:
using System;
class Program
{
static void Main(string[] args)
{
Console.WriteLine(“{0}”, 123);
Console.WriteLine(“{0,6}”, 123);
Console.WriteLine(“{0,-6}”, 123);
Console.WriteLine(“{0:c}”, 123);
Console.WriteLine(“{0:d6}”, 123);
Console.WriteLine(“{0:e2}”, 123);
Console.WriteLine(“{0:f}”, 123.4562);
Console.WriteLine(“{0:#,##}”, 1234567);
Console.WriteLine(“{0:#.00}”, 1234.567);
Console.WriteLine(“{0:%#}”, .123);
Console.WriteLine(“{0:%#.00}”, .123);
}
}

Nguồn:https://wijstaanvooronzegrondrechten.org/

LEAVE A REPLY

Please enter your comment!
Please enter your name here