Last active
June 3, 2025 12:39
-
-
Save tigercubgames/55d1c7e53282dbffe747ef71d75c03a4 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; | |
namespace Homework | |
{ | |
internal class Program | |
{ | |
static void Main(string[] args) | |
{ | |
int totalImage = 52; | |
int imagePerRow = 3; | |
int fullRows = totalImage / imagePerRow; | |
int remainingImage = totalImage % imagePerRow; | |
Console.WriteLine($"Заполненных рядов: {fullRows}, оставшихся картинок: {remainingImage}."); | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment