06-06-2013, 04:22 PM
Managing Console I/O operations
Managing Console.pptx (Size: 62.46 KB / Downloads: 17)
The Console Class
Console Input
Console Output
Console Error
Console Output
Write() : output one or more values to the scree without new line
WriteLine(): Output with new line
Formatted Output
We can produce formatted output by WriteLine() method
WriteLine(format-string,v1,v2);
Format – string contains both text and markers which indicate
Where the values are to be print
How the values are to be formatted
Numeric Formatting
We can format by placing markers ({}), it is also known as placeholder
That optionally contains various format characters
C# supports two methods of numeric formatting
Standard format
Custom format