Advertisement
Rodunskiy

Untitled

Apr 15th, 2024
801
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.31 KB | None | 0 0
  1. int pictures = 52;
  2. int picturesCountInRow = 3;
  3. int filledRows;
  4. int extraPictures;
  5.  
  6. filledRows = pictures / picturesCountInRow;
  7. extraPictures = pictures % picturesCountInRow;
  8.  
  9. Console.WriteLine($"Полностью заполненные ряды:{filledRows}\nЛишние картинки:{extraPictures}");
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement