Advertisement
IGRODELOFF

HW: Pictures

Oct 5th, 2024 (edited)
102
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.66 KB | Gaming | 0 0
  1. using System;
  2. using System.Text;
  3.  
  4. namespace homeWorkPictures
  5. {
  6.     internal class Program
  7.     {
  8.         static void Main(string[] args)
  9.         {
  10.             int countPictures = 52;
  11.             int countPicturesRow = 3;
  12.  
  13.             int countFilldedRows = countPictures / countPicturesRow;
  14.             int countPicturesBeyondMeasure = countPictures % countPicturesRow;
  15.             Console.WriteLine($"Количество полностью заполненых рядов равно: {countFilldedRows} \n" +
  16.                 $"Количество картинок сверх меры равняется: {countPicturesBeyondMeasure}");
  17.         }
  18.     }
  19. }
  20.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement