AlexRaynor

Untitled

Feb 6th, 2018
133
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.45 KB | None | 0 0
  1.  static void Main(string[] args)
  2.         {
  3.             int photosCount = 52;
  4.             int countPerRow = 3;
  5.  
  6.             int fullRawsCount = photosCount / countPerRow;
  7.             int overflowCount = photosCount % countPerRow;
  8.  
  9.             Console.WriteLine("Заполнится рядов - " + fullRawsCount);
  10.             Console.WriteLine("Не влезет фотографий - " + overflowCount);
  11.  
  12.  
  13.             Console.ReadLine();
  14.         }
Advertisement
Add Comment
Please, Sign In to add comment