VIzlo

Task 4

Aug 23rd, 2022 (edited)
89
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.30 KB | Gaming | 0 0
  1. int pictures = 52;
  2. int inRowPictures = 3;
  3.  
  4. int quantityRows = pictures / inRowPictures;
  5. int remainsPictures = pictures % inRowPictures;
  6.  
  7. Console.WriteLine($"На экране будет заполнено {quantityRows} рядов, но {remainsPictures} не уместились на экран :(");
Advertisement
Add Comment
Please, Sign In to add comment