Advertisement
RedFlys

CLight_BaseLevel_Lesson1_2

Dec 30th, 2019
227
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.59 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 CLight_BaseLevel_Lesson1_2
  8. {
  9.     class Program
  10.     {
  11.         static void Main(string[] args)
  12.         {
  13.             int pictures = 52;
  14.             int column = 3;
  15.             int rows;
  16.             int balance;
  17.  
  18.             rows = pictures / column;
  19.             balance = pictures % column;
  20.  
  21.             Console.WriteLine($"Целых рядов - {rows}. Останется картин - {balance}");
  22.             Console.ReadKey();
  23.         }
  24.     }
  25. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement