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 Cslight15
- {
- class Program
- {
- static void Main(string[] args)
- {
- int numberOfPictures = 52;
- int range = 3;
- int numberOfRange = numberOfPictures / range;
- int excessPictures = numberOfPictures % range;
- Console.WriteLine ($"Кол-во рядов: {numberOfRange}");
- Console.WriteLine($"Кол-во картинок сверх меры: {excessPictures}");
- }
- }
- }
Add Comment
Please, Sign In to add comment