using System;
class MainClass {
public static void Main() {
double num = 0.17;
Console.WriteLine("Default format: " + num);
Console.WriteLine("Display a percentage: {0:#%}", num);
}
}
Default format: 0.17
Display a percentage: 17%