Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System;
- namespace CS12Light1
- {
- class MainClass
- {
- public static void Main(string[] args)
- {
- //Вывести остаток и целочисленное от чисел 52 и 3
- int summ = 52;
- int row = 3;
- int fullRows = summ / row;
- int overFlow = summ % row;
- Console.WriteLine("52 картины по 3 в ряду займут " + fullRows + " рядов.");
- Console.WriteLine("При этом " + overFlow + " картина будет в новом неполном ряду.");
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement