Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Select an option

  • Save smah-beep/ac5467ee2c7dfaa83eef1a6229989424 to your computer and use it in GitHub Desktop.

Select an option

Save smah-beep/ac5467ee2c7dfaa83eef1a6229989424 to your computer and use it in GitHub Desktop.
ДЗ: Картинки
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace _DZ_
{
internal class Program
{
static void Main(string[] args)
{
int countPicturesInLine = 3;
int countPicture = 52;
int countLines;
int remainsPictures;
countLines = countPicture / countPicturesInLine;
remainsPictures = countPicture % countPicturesInLine;
Console.WriteLine($"Имея данное количество картинок, можно вывести такое количество рядов: {countLines}");
Console.WriteLine($"Остаток картинок составит: { remainsPictures}");
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment