Advertisement
vovanhik_24

#4

Aug 18th, 2023
54
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.44 KB | None | 0 0
  1.         static void Main(string[] args)
  2.         {
  3.             int countColumnRows = 3;
  4.             int photosCount = 52;
  5.             int fullPhotoColumns = photosCount / countColumnRows;
  6.             int photosMoreColumns = photosCount % countColumnRows;
  7.  
  8.             Console.WriteLine($"Заполнено рядов: {fullPhotoColumns}");
  9.             Console.WriteLine($"Фотографий сверх меры: {photosMoreColumns}");
  10.         }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement