Skip to content

Instantly share code, notes, and snippets.

@ShamilAitov
Last active February 1, 2023 19:23
Show Gist options
  • Save ShamilAitov/0c091df12cc9c38591840ee720e43ea8 to your computer and use it in GitHub Desktop.
Save ShamilAitov/0c091df12cc9c38591840ee720e43ea8 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 УрокApp2
{
internal class Program
{
static void Main(string[] args)
{
int pictures = 52;
int picturesInOneRow = 3;
int filledRows;
int picturesBeyondMeasure;
filledRows = pictures / picturesInOneRow;
picturesBeyondMeasure = pictures % picturesInOneRow;
Console.WriteLine($"Полностью заполненых рядов, будет: {filledRows}");
Console.WriteLine($"Сверх меры картинок, будет: {picturesBeyondMeasure}");
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment