Created
April 29, 2021 14:06
-
-
Save Ana19997/02c960da1d9881f0146ea85b1852537f to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System; | |
using System.Collections.Generic; | |
using System.Linq; | |
using System.Text; | |
using System.Threading.Tasks; | |
namespace ConsoleApp2 | |
{ | |
class Program | |
{ | |
static void Main(string[] args) | |
{ | |
int images = 52; | |
int imagesPerLine = 3; | |
int row = images / imagesPerLine; | |
int extraImages = images % imagesPerLine; | |
Console.WriteLine(row); | |
Console.WriteLine(extraImages); | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment