Multiply Two Numbers
Multiplication is one of the basic operations behind almost every calculation in a program. Write multiply, which takes two numbers a and b and returns their product. The numbers may be positive, negative, or 0.
Примеры
Ввод
2, 3Вывод
6Ввод
5, 0Вывод
0Ввод
-4, 3Вывод
-12Нужно реализовать
def multiply(a: int, b: int) -> int:
Теги
math
Logga in för att se historik över inskick
Logga inLogga in för att använda AI-mentorn
Logga inVisible tests
1
Input
2, 3Expected
62
Input
5, 0Expected
03
Input
-4, 3Expected
-124
Input
7, 7Expected
495
Input
100, 2Expected
2006
Input
2, 1000Expected
2000Focus radio
Paused · SomaFM · Fluid