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
// Use Gists to store code you would like to remember later on | |
console.log(window); // log the "window" object to the console |
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
2021/04/05 15:45:40 [error] [system] #system @system-exception: array ( | |
'code' => 0, | |
'message' => 'Invalid amount value type', | |
'file' => 'D:\\CrowdRepublic\\OpenServer\\domains\\yii-stage\\protected\\components\\lib\\Model\\MonetaryAmount.php', | |
'line' => 97, | |
'trace' => | |
array ( | |
0 => | |
array ( | |
'file' => 'D:\\CrowdRepublic\\OpenServer\\domains\\yii-stage\\protected\\components\\lib\\Common\\AbstractObject.php', |
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
string name; | |
int age; | |
int programCount; | |
int money; | |
int time; | |
bool truth; | |
name = "Станислав"; | |
age = 33; | |
programCount = 2; |
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
sbyte a = -99; | |
ushort b = 55555; | |
uint c = 2394672295; | |
float d = 65.46f; | |
char e = 'a'; | |
string f = "World"; |
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
Console.WriteLine("4 плюс 6 = " + (4 + 6)); | |
Console.WriteLine("4 уменьшенное на 1 = " + (4 - 1)); | |
Console.WriteLine("3 умножить на 7 = " + (3 * 7)); | |
Console.WriteLine("16 разделить на 8 = " + (16 / 8)); | |
Console.WriteLine("11 разделить на 5 = " + (11 / 5f)); | |
Console.WriteLine("целая часть от деления 13 на 3 = " + (13 / 3)); | |
Console.WriteLine("остаток от деления 17 на 8 = " + (17 % 8)); |
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
string s1 = "Каждый "; | |
string s2 = "охотник "; | |
string s3 = "желает "; | |
string s4 = "знать, "; | |
string s5 = "где "; | |
string s6 = "сидит "; | |
string s7 = "фазан."; | |
Console.Write(s1); | |
Console.Write(s2); |
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
string stringNumber = "256"; | |
int numberFromString = Convert.ToInt32(stringNumber); | |
int square = numberFromString * numberFromString; | |
Console.WriteLine("Квадрат введенного числа равен " + square); |
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
Console.Write("Введите своё имя: "); | |
string name = Console.ReadLine(); | |
Console.WriteLine(); | |
Console.Write("Введите свой возраст: "); | |
string age = Console.ReadLine(); | |
Console.WriteLine(); |
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
int magicNumber = 4; | |
Console.WriteLine("Угадай число"); | |
Console.WriteLine(); | |
Console.WriteLine("Загадано число от 1 до 5. Попробуйте его отгадать!"); | |
Console.WriteLine(); | |
Console.Write("Введите ваше число: "); | |
int input = Convert.ToInt32(Console.ReadLine()); | |
Console.WriteLine(); | |
if (input == magicNumber) |
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
bool[] thimbles = new bool[3] { false, true, false }; | |
Console.WriteLine("Игра в наперстки"); | |
Console.WriteLine(); | |
Console.WriteLine("[1] [2] [3]"); | |
Console.WriteLine(); | |
Console.WriteLine("под одним из трех наперстков находится шарик. Попробуйте угадать в каком!"); | |
Console.WriteLine(); | |
Console.Write("Введите ваше число от 1 до 3: "); | |
int input = Convert.ToInt32(Console.ReadLine()); |
OlderNewer