Submit your research to the International Journal "Notes on Intuitionistic Fuzzy Sets". Contact us at nifs.journal@gmail.com

Call for Papers for the 25th Jubilee Edition of the International Conference on Intuitionistic Fuzzy Sets is now open!
Conference: 9–10 September 2022 • Deadline for submission: 30 May 2022.

User talk:Vassia Atanassova

From Ifigenia, the wiki for intuitionistic fuzzy sets and generalized nets
Jump to navigation Jump to search
#include<stdio.h>
int main()
{
	int n, i, j, a, b, minMultiple, lcm, r;
	printf("enter n value:");
          scanf("%d", &n);
          printf("Classical Pairs:");
    for(i=2; i<n; i++)
    {
    for(j=i+1; j<n; j++)
    {
          a = i;
	b = j;
	    // maximum number between a and b is stored in minMultiple
	minMultiple = (a>b) ? a : b;
  	    // Always true
        while(1)
        {
        if (minMultiple%a==0 && minMultiple%b==0)
        {
                 //lCM of the two numbers will be stored in minmultiple
            lcm = minMultiple;
            r = (lcm%n);
  	  if( r == 0 )
  		{
  		   printf("{%d,%d},",a,b);
   		 }
            break;
        }
        ++minMultiple;
        }
	}	
	}
return 0;
}