8-9 October 2020 • Burgas, Bulgaria

Submission: 15 May 2020 • Notification: 31 May 2020 • Final Version: 15 June 2020

User talk:Vassia Atanassova

From Ifigenia, the wiki for intuitionistic fuzzy sets and generalized nets
Jump to: navigation, search
 1 #include<stdio.h>
 2 int main()
 3 {
 4 	int n, i, j, a, b, minMultiple, lcm, r;
 5 	printf("enter n value:");
 6           scanf("%d", &n);
 7           printf("Classical Pairs:");
 8     for(i=2; i<n; i++)
 9     {
10     for(j=i+1; j<n; j++)
11     {
12           a = i;
13 	b = j;
14 	    // maximum number between a and b is stored in minMultiple
15 	minMultiple = (a>b) ? a : b;
16   	    // Always true
17         while(1)
18         {
19         if (minMultiple%a==0 && minMultiple%b==0)
20         {
21                  //lCM of the two numbers will be stored in minmultiple
22             lcm = minMultiple;
23             r = (lcm%n);
24   	  if( r == 0 )
25   		{
26   		   printf("{%d,%d},",a,b);
27    		 }
28             break;
29         }
30         ++minMultiple;
31         }
32 	}	
33 	}
34 return 0;
35 }