rukvir

HW 3_1

Dec 2nd, 2021
561
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Linq;
  4. using System.Text;
  5. using System.Threading.Tasks;
  6.  
  7. namespace HomeWorck_3_1
  8. {
  9.     class Program
  10.     {
  11.         static void Main(string[] args)
  12.         {
  13.             int rowPictures = 3;
  14.             int totalPictures = 52;
  15.             int fullRowPictures;
  16.             int extraPictures;
  17.  
  18.             fullRowPictures = totalPictures / rowPictures;
  19.             extraPictures = totalPictures % rowPictures;
  20.             Console.WriteLine($"Полность заполненых рядов будет: {fullRowPictures}. Картинок сверх меры будет: {extraPictures}.");
  21.         }
  22.     }
  23. }
RAW Paste Data