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 Задание_5
- {
- class Program
- {
- static void Main(string[] args)
- {
- int totalPictures = 52;
- int picturesInARow = 3;
- int numberOfRowsReceived;
- int numberOfExtraPictures;
- numberOfRowsReceived = totalPictures / picturesInARow;
- numberOfExtraPictures = totalPictures % picturesInARow;
- Console.WriteLine($"Количество полученных рядов {numberOfRowsReceived}. Количество лишних картинок {numberOfExtraPictures}");
- }
- }
- }
Add Comment
Please, Sign In to add comment