Advertisement
JohnJuly

Homework4

Oct 3rd, 2023 (edited)
98
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.69 KB | None | 0 0
  1.  using System;
  2. using System.Collections.Generic;
  3. using System.Linq;
  4. using System.Text;
  5. using System.Threading.Tasks;
  6.  
  7. namespace Homework3
  8. {
  9.     internal class Program
  10.     {
  11.         static void Main(string[] args)
  12.         {
  13.             int picturesInRow = 3;
  14.             int countPictures = 52;
  15.             int countFilledRows;
  16.             int extraPictures;
  17.  
  18.             countFilledRows = countPictures / picturesInRow;
  19.             extraPictures = countPictures % picturesInRow;
  20.  
  21.             Console.WriteLine($"Количество заполненных рядов: {countFilledRows}," +
  22.                 $" Картинок сверх меры: {extraPictures}");
  23.         }
  24.     }
  25. }
  26.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement