ranee

Untitled

Jun 11th, 2020
167
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.70 KB | None | 0 0
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Dynamic;
  4. using System.Linq;
  5. using System.Text;
  6. using System.Threading.Tasks;
  7.  
  8. namespace CSLight
  9. {
  10.     class Program
  11.     {
  12.         static void Main(string[] args)
  13.         {
  14.             int totaNumberOfPictures = 52;
  15.             int picturesInaRow = 3;
  16.             int filedRow = totaNumberOfPictures / picturesInaRow;
  17.             int didNotHitTheRow = totaNumberOfPictures % picturesInaRow;
  18.             Console.WriteLine($"Из {totaNumberOfPictures} картинок, можно выложить в ряд по {picturesInaRow} штуки, {filedRow} рядов и останется {didNotHitTheRow} картинка.");
  19.         }
  20.     }
  21. }
Advertisement
Add Comment
Please, Sign In to add comment