这题不仅仅可以用system中的math.pow方法,也可以使用循环乘,递归等方法来实现
public class Program {
public static void Main() {
int a = int.Parse(System.Console.ReadLine());
System.Console.WriteLine(System.Math.Pow(2,a));
}
}

这题不仅仅可以用system中的math.pow方法,也可以使用循环乘,递归等方法来实现
public class Program {
public static void Main() {
int a = int.Parse(System.Console.ReadLine());
System.Console.WriteLine(System.Math.Pow(2,a));
}
}