Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- static void Main(string[] args)
- {
- int countColumnRows = 3;
- int photosCount = 52;
- int fullPhotoColumns = photosCount / countColumnRows;
- int photosMoreColumns = photosCount % countColumnRows;
- Console.WriteLine($"Заполнено рядов: {fullPhotoColumns}");
- Console.WriteLine($"Фотографий сверх меры: {photosMoreColumns}");
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement