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 Task3
- {
- internal class Program
- {
- static void Main(string[] args)
- {
- int picturesCount;
- int seriesCount;
- int picturesInSeries = 3;
- int picturesBeyondMeasure;
- Console.Write("Введите количество картинок, имеющихся у вас в данный момент: ");
- picturesCount = Convert.ToInt32(Console.ReadLine());
- seriesCount = picturesCount / picturesInSeries;
- picturesBeyondMeasure = picturesCount % picturesInSeries;
- Console.WriteLine("У вас будет выведенно " + seriesCount + " полностью заполненных рядов и " + picturesBeyondMeasure + " картинки сверх меры.");
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement