SunBroMarko

C#Light_1.5

Oct 1st, 2019
53
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.36 KB | None | 0 0
  1. //exercises 5
  2. byte MaxImagesInRow = 3;
  3. int UserImagesCount = 52;
  4. int ImageCountUpperMax = 0;
  5.  
  6.  
  7. int MaxRowCount = UserImagesCount / MaxImagesInRow;
  8. ImageCountUpperMax = UserImagesCount - (MaxRowCount * MaxImagesInRow);
  9. Console.WriteLine($"Целых рядов из трёх картинок:{MaxRowCount}. Остаток картинок:{ImageCountUpperMax};");
Add Comment
Please, Sign In to add comment