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 WorkWithPictures
- {
- internal class Program
- {
- static void Main(string[] args)
- {
- int pictruresInRow = 3;
- int totalPictures = 52;
- int totalRows;
- int outOfRangePictures;
- totalRows = totalPictures / pictruresInRow;
- outOfRangePictures = totalPictures - (totalRows * pictruresInRow);
- Console.WriteLine($"Количество полностью заполненных рядов {totalRows}");
- Console.WriteLine($"Картинок сверх меры {outOfRangePictures}");
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement