Skip to content

Instantly share code, notes, and snippets.

@QRemark
Last active January 8, 2024 16:57
Show Gist options
  • Save QRemark/043d31473c58c26df25306b5fe6c45be to your computer and use it in GitHub Desktop.
Save QRemark/043d31473c58c26df25306b5fe6c45be to your computer and use it in GitHub Desktop.
using System;
using System.Collections.Generic;
using System.Linq;
using System.Security.Policy;
using System.Text;
using System.Threading.Tasks;
namespace homeWork1
{
internal class Program
{
static void Main(string[] args)
{
int picture = 52;
int line = 3;
int fullDisplay;
int remainder;
fullDisplay = picture / line;
remainder = picture % line;
Console.WriteLine($"Число полностью заполненных экранов равно: {fullDisplay}.");
Console.WriteLine($"Число картинок сверх меры равно: {remainder}.");
Console.ReadKey();
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment