Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System;
- using System.Collections.Generic;
- using System.Linq;
- using System.Text;
- using System.Threading.Tasks;
- namespace CJunior
- {
- class Program
- {
- static void Main(string[] args)
- {
- int imagesInRow = 3;
- int imagesCount = 52;
- int filledRows = imagesCount / imagesInRow;
- int imagesLeft = imagesCount % imagesInRow;
- Console.WriteLine($"Заполнено {filledRows} рядов, осталось {imagesLeft} картинок.");
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement