Advertisement
SPavelA

Untitled

Jul 28th, 2023
66
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.42 KB | None | 0 0
  1.             int rowLength = 3;
  2.             int numberOfImages = 52;
  3.             int numberOfFullRows = numberOfImages / rowLength;
  4.             int numberOfImagesInLastRow = numberOfImages % rowLength;
  5.             Console.WriteLine("Полностью заполненных картинками рядов: " + numberOfFullRows);
  6.             Console.WriteLine("Сверх меры картинок: " + numberOfImagesInLastRow);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement