Advertisement
Guest User

C# Light 1.5

a guest
Aug 21st, 2019
95
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.62 KB | None | 0 0
  1. using System;
  2.  
  3. namespace CS12Light1
  4. {
  5.     class MainClass
  6.     {
  7.         public static void Main(string[] args)
  8.         {
  9.             //Вывести остаток и целочисленное от чисел 52 и 3
  10.             int summ = 52;
  11.             int row = 3;
  12.             int fullRows = summ / row;
  13.             int overFlow = summ % row;
  14.             Console.WriteLine("52 картины по 3 в ряду займут " + fullRows + " рядов.");
  15.             Console.WriteLine("При этом " + overFlow + " картина будет в новом неполном ряду.");
  16.         }
  17.     }
  18. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement