Created
May 24, 2026 15:30
-
-
Save smah-beep/ac5467ee2c7dfaa83eef1a6229989424 to your computer and use it in GitHub Desktop.
ДЗ: Картинки
This file contains hidden or 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
| using System; | |
| using System.Collections.Generic; | |
| using System.Linq; | |
| using System.Text; | |
| using System.Threading.Tasks; | |
| namespace _DZ_ | |
| { | |
| internal class Program | |
| { | |
| static void Main(string[] args) | |
| { | |
| int countPicturesInLine = 3; | |
| int countPicture = 52; | |
| int countLines; | |
| int remainsPictures; | |
| countLines = countPicture / countPicturesInLine; | |
| remainsPictures = countPicture % countPicturesInLine; | |
| Console.WriteLine($"Имея данное количество картинок, можно вывести такое количество рядов: {countLines}"); | |
| Console.WriteLine($"Остаток картинок составит: { remainsPictures}"); | |
| } | |
| } | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment