+ 1

Написать функцию,которая возвращает наименьшее общее кратное двух чисел.Правильно сделал?

#include <iostream> using namespace std; int main() { cout << "Enter two numbers" << endl; int a,b; cin >> a >> b; cout << "Kratnoe = " << a*b << endl; return 0; }

10th Jan 2022, 2:44 PM
Илья Карасев
1 Antwort
+ 2
LCM (Least Common Multiple) of two numbers is the smallest number which can be divided by both numbers https://www.geeksforgeeks.org/program-to-find-lcm-of-two-numbers
10th Jan 2022, 2:58 PM
SoloProg
SoloProg - avatar