Last active
January 4, 2024 12:24
-
-
Save tsk-arh/109404f8c859a707c2fc85fc1ff52251 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
using System; | |
using System.Collections.Generic; | |
using System.Linq; | |
using System.Text; | |
using System.Threading.Tasks; | |
namespace junior1 | |
{ | |
internal class Program | |
{ | |
static void Main(string[] args) | |
{ | |
int maxGaleryPictures = 52; | |
int picturesRowMax = 3; | |
int fullRows = maxGaleryPictures / picturesRowMax; | |
int superfluousPictures = maxGaleryPictures % picturesRowMax; | |
Console.WriteLine("Полных рядов = " + fullRows + "\nЛишних картинок = " + superfluousPictures); | |
Console.ReadLine(); | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment