Skip to content

Instantly share code, notes, and snippets.

@shastr
Created March 2, 2022 17:40
Show Gist options
  • Save shastr/965f94eef5ad934beabfe36758473124 to your computer and use it in GitHub Desktop.
Save shastr/965f94eef5ad934beabfe36758473124 to your computer and use it in GitHub Desktop.
public static void Main(string[] args)
{
int photos = 52;
int photosPerRow = 3;
int fullRowsCount = photos / photosPerRow;
int overflowCount = photos % photosPerRow;
Console.WriteLine("Available Photos : " + fullRowsCount);
Console.WriteLine("Photos Overflow : " + overflowCount);
Console.ReadLine();
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment