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