Advertisement
pol9na

Untitled

Feb 29th, 2020
142
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.52 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 Сprogect
  8. {
  9.     class Program
  10.     {
  11.         static void Main(string[] args)
  12.         {
  13.             int allArt = 52;
  14.             int artInRow = 3;
  15.             int row, balance;
  16.             row = allArt / artInRow;
  17.             balance = allArt % artInRow;
  18.             Console.WriteLine(row);
  19.             Console.WriteLine(balance);
  20.             Console.ReadKey();
  21.         }
  22.     }
  23. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement