Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- int pictures = 52;
- int picturesCountInRow = 3;
- int filledRows;
- int extraPictures;
- filledRows = pictures / picturesCountInRow;
- extraPictures = pictures % picturesCountInRow;
- Console.WriteLine($"Полностью заполненные ряды:{filledRows}\nЛишние картинки:{extraPictures}");
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement