Created
January 25, 2024 22:46
-
-
Save EreminAndrei/af6810f56c8e1f62f5b1d17dd78fc10d to your computer and use it in GitHub Desktop.
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
int totalAmount = 52; | |
int amountInRow = 3; | |
int amountOfRows = totalAmount / amountInRow; | |
int notInRows = totalAmount % amountInRow; | |
Console.WriteLine($"Получаеться {amountOfRows} рядов, и остается {notInRows} картинок"); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment