Skip to content

Instantly share code, notes, and snippets.

@parzibyte
Created August 7, 2019 22:23
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save parzibyte/fe467758fe732b1f29df3e201100677e to your computer and use it in GitHub Desktop.
Save parzibyte/fe467758fe732b1f29df3e201100677e to your computer and use it in GitHub Desktop.
using System;
class Potencias{
public static void Main(){
int numero = 10;
double elevadoAlCuadrado = Math.Pow(numero, 2); // Elevarlo a la potencia 2
Console.WriteLine(string.Format("{0} elevado al cuadrado es {1}", numero, elevadoAlCuadrado));
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment