2. The maximum number of conventions and the least common

xiaoxiao2021-03-06  41

Main ()

{

INT P, R, M, N, TEMP;

Printf ("Please enter two positive integers: n, m");

Scanf ("% D,% D", & n, & m);

IF (n

{

Temp = N;

n = m;

m = TEMP;

}

P = N * m;

While (M! = 0)

{

R = N% M;

n = m;

m = r;

}

Printf ("The maximum number of conventions is:% D / N", N);

Printf ("The least common multiple is:% D / N", P / N);

转载请注明原文地址:https://www.9cbs.com/read-73571.html

New Post(0)