Main.cs
using
System;
class
Program {
-
public
static
int
Main() {
-
decimal
PI = 3.14758m;
-
string
str =
string
.Format(
"{0:f2}"
, PI);
-
Console.WriteLine(str);
-
Console.ReadKey();
-
return
0;
-
}
}
using
System;
class
Program {
-
public
static
int
Main() {
-
decimal
PI = 3.14758m;
-
string
str =
string
.Format(
"{0:f2}"
, PI);
-
Console.WriteLine(str);
-
Console.ReadKey();
-
return
0;
-
}
}
3,15