Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System;
- namespace HomeWork
- {
- internal class Program
- {
- public static void Main(string[] args)
- {
- int totalPictures = 52;
- int picturesInRow = 3;
- int filledRows = totalPictures / picturesInRow;
- int extraPictures = totalPictures % picturesInRow;
- Console.WriteLine("Заполненные ряды: " + filledRows);
- Console.WriteLine("Лишние картинки: " + extraPictures);
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement