Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public class Program
- {
- private static void Main(string[] args)
- {
- int allImages = 52;
- int imagesOfRow = 3;
- int filledRows = allImages / imagesOfRow;
- int imagesOverRows = allImages % imagesOfRow;
- Console.WriteLine($"Полностью заполненных рядов {filledRows}");
- Console.WriteLine($"Картинок сверх меры {imagesOverRows}");
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement