Dr_Max_Experience

Task 3

Aug 11th, 2021 (edited)
128
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.82 KB | None | 0 0
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Linq;
  4. using System.Text;
  5. using System.Threading.Tasks;
  6.  
  7. namespace Homework_1
  8. {
  9.     class Program
  10.     {
  11.         static void Main(string[] args)
  12.         {
  13.             Console.Write("Количеcтво картинок: ");
  14.             uint pictureСount = Convert.ToUInt32(Console.ReadLine());
  15.             Console.Write("Количеcтво картинок в ряду: ");
  16.             uint pictureСountInLine = Convert.ToUInt32(Console.ReadLine());
  17.             uint lineValue = pictureСount / pictureСountInLine;
  18.             uint pictureRemained = pictureСount % pictureСountInLine;
  19.             Console.WriteLine($"Рядов: {lineValue}\nОсталось картинок: {pictureRemained}");
  20.             Console.ReadKey();
  21.         }
  22.     }
  23. }
  24.  
Add Comment
Please, Sign In to add comment