Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System;
- namespace ConsoleApp
- {
- internal class Program
- {
- static void Main(string[] args)
- {
- int countImages = 52;
- int rowLength = 3;
- int filledRowsCount = countImages / rowLength;
- int extraImages = countImages % rowLength;
- string report = $"Количество полностью заполненных рядов - {filledRowsCount}. Количество оставшихся картинок - {extraImages}";
- Console.WriteLine(report);
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment