Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- internal class Program
- {
- static void Main(string[] args)
- {
- int totalNumberOfPictures;
- int numberOfPicturesInRow;
- int filledRows;
- int restOfPictures;
- Console.Write("Введите кол-во картинок: ");
- totalNumberOfPictures = Convert.ToInt32(Console.ReadLine());
- Console.Write("Введите размер ряда: ");
- numberOfPicturesInRow = Convert.ToInt32(Console.ReadLine());
- filledRows = totalNumberOfPictures / numberOfPicturesInRow;
- restOfPictures = totalNumberOfPictures % numberOfPicturesInRow;
- Console.WriteLine();
- Console.WriteLine($"{filledRows} Количество заполненных рядов.\n" +
- $"{restOfPictures} картинок осталось");
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement