Advertisement
bonumopus

task2

Apr 7th, 2020
199
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.61 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 firstproject
  8. {
  9.     class Program
  10.     {
  11.         static void Main(string[] args)
  12.         {
  13.             int allPics = 52;
  14.             int rows = 3;
  15.             int fullRows = allPics/rows;
  16.             int leftPics = allPics%rows;
  17.  
  18.             Console.WriteLine("Полностью заполненных рядов в альбоме " + fullRows);
  19.             Console.WriteLine("Оставшихся картинок " + leftPics);
  20.             Console.ReadLine();
  21.         }
  22.     }
  23. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement