Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- //exercises 5
- byte MaxImagesInRow = 3;
- int UserImagesCount = 52;
- int ImageCountUpperMax = 0;
- int MaxRowCount = UserImagesCount / MaxImagesInRow;
- ImageCountUpperMax = UserImagesCount - (MaxRowCount * MaxImagesInRow);
- Console.WriteLine($"Целых рядов из трёх картинок:{MaxRowCount}. Остаток картинок:{ImageCountUpperMax};");
Add Comment
Please, Sign In to add comment