Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System;
- namespace Clight_04
- {
- class Program
- {
- static void Main()
- {
- int numberImages = 52;
- int numberImagesInRow = 3;
- int numberRows;
- int remainsImages;
- numberRows = numberImages / numberImagesInRow;
- remainsImages = numberImages % numberImagesInRow;
- Console.WriteLine($"Количество рядов по {numberImagesInRow} картинки(-ок): " + numberRows);
- Console.WriteLine("Количество оставшихся картинок: " + remainsImages);
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement