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