Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System;
- using System.Text;
- namespace CSLite1
- {
- internal class Program
- {
- static void Main(string[] args)
- {
- Console.InputEncoding = Encoding.Unicode;
- Console.OutputEncoding = Encoding.Unicode;
- int picturesCount = 52;
- int rowSize = 3;
- int filledRowsCount = picturesCount / rowSize;
- int extraPicturesCount = picturesCount % rowSize;
- Console.WriteLine($"В альбоме {picturesCount} картинок.");
- Console.WriteLine($"Размер ряда {rowSize} картинок.");
- Console.WriteLine($"Заполненных картинками рядов: {filledRowsCount}.");
- Console.WriteLine($"В последнем ряду: {extraPicturesCount} картинок.");
- Console.ReadKey();
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment