Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System;
- namespace HomeWork
- {
- class Program
- {
- static void Main(string[] args)
- {
- int pictures = 52;
- int numberInRow = 3;
- int numberOfRow;
- int picturesLeft;
- numberOfRow = pictures / numberInRow;
- picturesLeft = pictures % numberInRow;
- Console.WriteLine($"Всего получиться {numberOfRow} рядов. Останется разместить {picturesLeft} картину.");
- Console.ReadKey();
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment