If you already have the GCD, what's the problem to calculate
NWW (or
here )?
edit:
[code:1:53670cdbe7]#include
int main()
{
int a,b;
std::cout > a;
std::cout > b;
//zapamietaj
int azap = a, bzap = b;
while (a!=b)
{
if (b>a)
b-=a;
else
a-=b;
}
std::cout