Created
September 18, 2023 19:50
-
-
Save EntaltsevSN/0841d5663b94500b3703808b606b9faa to your computer and use it in GitHub Desktop.
Square
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
string stringNumber = "256"; | |
int numberFromString = Convert.ToInt32(stringNumber); | |
int square = numberFromString * numberFromString; | |
Console.WriteLine("Квадрат введенного числа равен " + square); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment