Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System;
- namespace Variables
- {
- class Program
- {
- static void Main(string[] args)
- {
- int columnInRow = 3;
- int usersImages = 52;
- int filledRows = usersImages / columnInRow;
- int aboveRows = usersImages % columnInRow;
- Console.WriteLine($"Полностью заполненных рядов : {filledRows}, а картинок, которые не заполнили ряд: {aboveRows}");
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement