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