Pirnogion

IJCSHW4

Sep 21st, 2025
112
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.88 KB | None | 0 0
  1. using System;
  2. using System.Text;
  3.  
  4. namespace CSLite1
  5. {
  6.     internal class Program
  7.     {
  8.         static void Main(string[] args)
  9.         {
  10.             Console.InputEncoding = Encoding.Unicode;
  11.             Console.OutputEncoding = Encoding.Unicode;
  12.  
  13.             int picturesCount = 52;
  14.             int rowSize = 3;
  15.  
  16.             int filledRowsCount = picturesCount / rowSize;
  17.             int extraPicturesCount = picturesCount % rowSize;
  18.  
  19.             Console.WriteLine($"В альбоме {picturesCount} картинок.");
  20.             Console.WriteLine($"Размер ряда {rowSize} картинок.");
  21.             Console.WriteLine($"Заполненных картинками рядов: {filledRowsCount}.");
  22.             Console.WriteLine($"В последнем ряду: {extraPicturesCount} картинок.");
  23.             Console.ReadKey();
  24.         }
  25.     }
  26. }
  27.  
Advertisement
Add Comment
Please, Sign In to add comment