Advertisement
rukvir

HW 1_4_2

Feb 3rd, 2025
54
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.62 KB | None | 0 0
  1. using System;
  2.  
  3. namespace HW_2025
  4. {
  5.     internal class Program
  6.     {
  7.         static void Main(string[] args)
  8.         {
  9.             int picturesPerRow = 3;
  10.             int picturesTotal = 52;
  11.             int tempCalculationData = 0;
  12.  
  13.             tempCalculationData = picturesTotal / picturesPerRow;
  14.             Console.WriteLine($"Всего можно повесить рядов: {tempCalculationData}");
  15.             tempCalculationData = picturesTotal % picturesPerRow;
  16.             Console.WriteLine($"Останется картин: {tempCalculationData}");
  17.  
  18.             Console.ReadKey();
  19.         }
  20.     }
  21. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement