Advertisement
Gudini

Homework1_4

Sep 22nd, 2023 (edited)
66
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.66 KB | Source Code | 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 Homework1_4
  8. {
  9.     class Program
  10.     {
  11.         static void Main(string[] args)
  12.         {
  13.             int picturesInRow = 3;
  14.             int pictures = 52;
  15.             int rowsFilled = pictures / picturesInRow;
  16.             int remainingPictures = pictures % picturesInRow;
  17.  
  18.             Console.WriteLine($"Полностью заполненных рядов можно будет вывести: {rowsFilled}," +
  19.                 $" а картинок будет сверх меры: {remainingPictures}");
  20.         }
  21.     }
  22. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement