Advertisement
TravaMan

Basic_Task2

Nov 19th, 2019
147
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.45 KB | None | 0 0
  1. using System;
  2.  
  3. namespace Basic_Task2
  4. {
  5.     class Program
  6.     {
  7.         static void Main(string[] args)
  8.         {
  9.             int pictures = 52;
  10.             int inRow = 3;
  11.             Console.WriteLine("Кол-во полностью заполненных рядов: " + (pictures / inRow));
  12.             Console.WriteLine("Кол-во картинок сверх меры: " + (pictures % inRow));
  13.             Console.ReadKey();
  14.         }
  15.     }
  16. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement