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
byte hour = 21; | |
sbyte sleepHours = 6; | |
int weekNumber = 3; | |
short year = 2021; | |
ushort daysInYear = 365; | |
float temperature = 36.6f; | |
bool isMonth31Day = true; //месяц где 31 день | |
uint dayNewEra = 737695; // для примера берем примерное число с 1.01.0000 | |
long secondsInMonth = 2592000; | |
ulong usaNationalDebtInRub= 2568879600000000; // примерный госдолг сша в рублях :) |
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
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(); |