Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System;
- namespace ConsoleApp3
- {
- internal class Program
- {
- static void Main(string[] args)
- {
- int sizeOfRow = 3;
- int imageCount = 52;
- int rowsOfImages = imageCount / sizeOfRow;
- int remainsOfImages = imageCount % sizeOfRow;
- Console.WriteLine($"Из {imageCount} картинок можно вывести {rowsOfImages} рядов по {sizeOfRow} картинки в ряду. Лишних картинок останется: {remainsOfImages}.");
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment