+ 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; }
1 Answer
+ 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