#include <stdio.h>
#include <stdlib.h>

#define ENGLISH

//---------------------------------------------------------------------------
int main(int argc, char **argv)
{
  int a,b;
  int i,nsn;
  
  #ifdef ENGLISH
    printf("The least common multiple of two integers\n");
    printf("=========================================\n");
    printf("Insert two numbers: \n");
  #else
    printf("Nejmensi spolecny nasobek dvou prirozenych cisel\n");
    printf("================================================\n");
    printf("Zadej cisla a b: ");
  #endif

  scanf("%d %d",&a,&b);

  if (a<=0 || b<=0) return 1;

  i=1;
  nsn = a;
  while (nsn%b != 0)
  {
    nsn = a*++i;
  }

  #ifdef ENGLISH
   printf("The least common multiple l.c.m. = %d\n",nsn);
  #else
    printf("Nejmensi spolecny nasobek nsn = %d\n",nsn);
  #endif  
  system("pause");

  return 0;
}
