Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System;
- namespace ConsoleApp5
- {
- class Program
- {
- static void Main(string[] args)
- {
- int pictures = 52;
- int pictInRow = 3;
- int fullRows;
- int extraPictures;
- string text;
- fullRows = pictures / pictInRow;
- extraPictures = pictures % pictInRow;
- text = "Можно вывести " + fullRows + " полных рядов картинок и " + extraPictures + " картинок будут лишними.";
- Console.WriteLine(text);
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement