Last active
February 1, 2023 19:23
-
-
Save ShamilAitov/0c091df12cc9c38591840ee720e43ea8 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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