ответ: ок я програмист со стажем
Объяснение:
user = "імя"
action = "школа"
log_message = 'Пользователь {} зашел на сайт и выполнил действие: {}'.format(
user,
action
)
print(log_message)
# Пользователь імя зашел на сайт и выполнил действие: школа
from dataclasses import dataclass
@dataclass
class Armor:
armor: float
description: str
level: int = 1
def power(self) -> float:
return self.armor * self.level
armor = Armor(5.2, "Common armor.", 2)
armor.power()
# 10.4
print(armor)
# Armor(armor=5.2, description='Common armor.', level=2)
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace ConsoleApplication5
{
class Program
{
static void Main(string[] args)
{
int m, n;
Console.WriteLine("Введите число m");
m = int.Parse(Console.ReadLine());
Console.WriteLine("Введите число m");
n = int.Parse(Console.ReadLine());
int[,] mass = new int[m, n];
int max = 0;
for (int i = 0; i < m; i++)
{
for (int j = 0; j < n; j++)
{
Console.WriteLine("Введите (" + i + "; " + j + ")-ый элемент");
mass[i, j] = int.Parse(Console.ReadLine());
if (i == 0 && j == 0)
max = mass[i, j];
else
{
if (mass[i, j] > max)
max = mass[i, j];
}
}
}
Console.WriteLine("Maксимальный элемент равен " + max);
Console.ReadKey();
}
}
}