GPbl3YH

CSLight #3

Jan 3rd, 2021 (edited)
879
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.68 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 CSLight
  8. {
  9.     class Program
  10.     {
  11.         static void Main(string[] args)
  12.         {
  13.             int numberOfPictures = 52;
  14.             int picturesInRow = 3;
  15.             int numberOfRows = numberOfPictures / picturesInRow;
  16.             int overflow = numberOfPictures % picturesInRow;
  17.             Console.WriteLine("Количество строк с картинками = " + numberOfRows);
  18.             Console.WriteLine("Количество картинок вне строк= " + overflow);
  19.             Console.ReadKey();
  20.         }
  21.     }
  22. }
  23.  
Add Comment
Please, Sign In to add comment