Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System;
- using System.Collections.Generic;
- using System.Dynamic;
- using System.Linq;
- using System.Text;
- using System.Threading.Tasks;
- namespace CSLight
- {
- class Program
- {
- static void Main(string[] args)
- {
- int totaNumberOfPictures = 52;
- int picturesInaRow = 3;
- int filedRow = totaNumberOfPictures / picturesInaRow;
- int didNotHitTheRow = totaNumberOfPictures % picturesInaRow;
- Console.WriteLine($"Из {totaNumberOfPictures} картинок, можно выложить в ряд по {picturesInaRow} штуки, {filedRow} рядов и останется {didNotHitTheRow} картинка.");
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment