Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System;
- namespace CSharpJuniorHomeWork03
- {
- class Program
- {
- static void Main(string[] args)
- {
- int picturesInAlbum = 52;
- int picturesInLine = 3;
- int fullLines; // кол-во полностью заполненных рядов
- int rest; // остаток картинок
- fullLines = picturesInAlbum / picturesInLine;
- Console.WriteLine($"количество рядов: {fullLines}");
- rest = picturesInAlbum % picturesInLine;
- Console.WriteLine($"остаток: {rest}");
- Console.ReadKey();
- }
- }
- }
Add Comment
Please, Sign In to add comment