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