|
@@ -24,6 +24,7 @@ Console.WriteLine(a);
|
|
```
|
|
```
|
|
|
|
|
|
Пятью пять - двадцать пять!:
|
|
Пятью пять - двадцать пять!:
|
|
|
|
+```
|
|
int a, b, c;
|
|
int a, b, c;
|
|
a = Convert.ToInt32(Console.ReadLine());
|
|
a = Convert.ToInt32(Console.ReadLine());
|
|
b = Convert.ToInt32(Math.Pow(a, 2));
|
|
b = Convert.ToInt32(Math.Pow(a, 2));
|
|
@@ -32,15 +33,19 @@ if (c == 5)
|
|
{
|
|
{
|
|
Console.WriteLine(Math.Pow(a,2));
|
|
Console.WriteLine(Math.Pow(a,2));
|
|
}
|
|
}
|
|
|
|
+```
|
|
|
|
|
|
Игра:
|
|
Игра:
|
|
|
|
+```
|
|
int b = 9;
|
|
int b = 9;
|
|
int a = Convert.ToInt32(Console.ReadLine());
|
|
int a = Convert.ToInt32(Console.ReadLine());
|
|
int c = b - a;
|
|
int c = b - a;
|
|
int d = (a * 100) + (b * 10) + c;
|
|
int d = (a * 100) + (b * 10) + c;
|
|
Console.WriteLine($"Загаданное число: {d}");
|
|
Console.WriteLine($"Загаданное число: {d}");
|
|
|
|
+```
|
|
|
|
|
|
Арифметика:
|
|
Арифметика:
|
|
|
|
+```
|
|
int numOne = Convert.ToInt32(Console.ReadLine());
|
|
int numOne = Convert.ToInt32(Console.ReadLine());
|
|
int numTwo = Convert.ToInt32(Console.ReadLine());
|
|
int numTwo = Convert.ToInt32(Console.ReadLine());
|
|
int numAnswer = Convert.ToInt32(Console.ReadLine());
|
|
int numAnswer = Convert.ToInt32(Console.ReadLine());
|
|
@@ -52,4 +57,5 @@ if (numAnswer == numOne * numTwo)
|
|
else
|
|
else
|
|
{
|
|
{
|
|
Console.WriteLine("NO");
|
|
Console.WriteLine("NO");
|
|
-}
|
|
|
|
|
|
+}
|
|
|
|
+```
|