Skip to content

Instantly share code, notes, and snippets.

@Ana19997
Created April 29, 2021 14:06
Show Gist options
  • Save Ana19997/02c960da1d9881f0146ea85b1852537f to your computer and use it in GitHub Desktop.
Save Ana19997/02c960da1d9881f0146ea85b1852537f to your computer and use it in GitHub Desktop.
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