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