Advertisement
growhack

Task with Pictures

Mar 25th, 2020
115
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.50 KB | None | 0 0
  1. using System;
  2.  
  3. namespace Variables
  4. {
  5.     class Program
  6.     {
  7.         static void Main(string[] args)
  8.         {
  9.             int columnInRow = 3;
  10.             int usersImages = 52;
  11.  
  12.             int filledRows = usersImages / columnInRow;
  13.             int aboveRows = usersImages % columnInRow;
  14.  
  15.             Console.WriteLine($"Полностью заполненных рядов : {filledRows}, а картинок, которые не заполнили ряд: {aboveRows}");
  16.         }
  17.     }
  18. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement