Advertisement
yargee

homework1-2

Feb 24th, 2020
135
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.37 KB | None | 0 0
  1. using System;
  2.                    
  3. public class Program
  4. {
  5.     public static void Main()
  6.     {
  7.     int totalNumber = 52;
  8.     int inRow = 3;
  9.     int fullRow;
  10.     int overRow;
  11.        
  12.     fullRow = totalNumber/inRow;
  13.     overRow = totalNumber%inRow;
  14.     Console.WriteLine($"Выведено заполненных рядов: {fullRow}, изображений в последнем ряду: {overRow}");
  15.     }
  16. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement