Display a percentage
using System;
class MainClass {
public static void Main() {
double num = 0.17;
Console.WriteLine("Default format: " + num);
Console.WriteLine("Display a percentage: {0:#%}", num);
}
}
Output Default format: 0.17
Display a percentage: 17%
|
HTML code for linking to this page:
Related in same category :
-
-
-
-
-
-
-
-
|