OldBeliver

homework_03 Picture

Mar 3rd, 2021 (edited)
76
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.65 KB | None | 0 0
  1. using System;
  2. namespace CSharpJuniorHomeWork03
  3. {
  4.     class Program
  5.     {
  6.         static void Main(string[] args)
  7.         {
  8.             int picturesInAlbum = 52;
  9.             int picturesInLine = 3;
  10.             int fullLines; // кол-во полностью заполненных рядов
  11.             int rest; // остаток картинок
  12.             fullLines = picturesInAlbum / picturesInLine;
  13.             Console.WriteLine($"количество рядов: {fullLines}");
  14.             rest = picturesInAlbum % picturesInLine;
  15.             Console.WriteLine($"остаток: {rest}");
  16.             Console.ReadKey();
  17.         }
  18.     }
  19. }
Add Comment
Please, Sign In to add comment