Дата активности | Консольный раздел | Прогресс | ||
---|---|---|---|---|
2019-05-22 | task2 | Алгоритмика | 20 % | |
2019-03-30 | task1 | Целые числа | 15 % | |
2019-01-25 | club | 24 - Муза Оля | 100 % | |
2019-01-25 | solo | YESOLO on the Keyboard | % | |
2019-01-25 | club | 4004 - Елена Вставская | 4 % | |
2019-01-17 | task1 | Семантика | 100 % | |
2019-01-17 | book | 000. Строки | 25 % | |
Итого: | 26 % |
Вот так правильно:
//www.VideoSharp.info/Консоль/Целые числа/Максима
using System;
class VideoSharp
{
static void Main()
{
Console.WriteLine("sbyte " + SByte.MinValue + " " + System.SByte.MaxValue);
Console.WriteLine("byte " + Byte.MinValue + " " + System.Byte.MaxValue);
Console.WriteLine("short " + short.MinValue + " " + short.MaxValue);
Console.WriteLine("ushort " + ushort.MinValue + " " + ushort.MaxValue);
Console.WriteLine("int " + int.MinValue + " " + int.MaxValue);
Console.WriteLine("uint " + uint.MinValue + " " + uint.MaxValue);
Console.WriteLine("long " + long.MinValue + " " + long.MaxValue);
Console.WriteLine("ulong " + ulong.MinValue + " " + ulong.MaxValue);
}
}
//www.VideoSharp.info/Консоль/Алгоритмика/For-то-чки
using System;
class VideoSharp
{
static void Main()
{
string smile = ":-";
int n = int.Parse(Console.ReadLine());
string skobka = ")";
string countSkobka = "";
for(int r = 0; r < n; r++)
{
countSkobka += skobka;
}
Console.WriteLine(smile + countSkobka);
}
}