[a,b] байгаа анхны тоонуудыг олох.

‪#‎include‬ <stdio.h>
#include <conio.h>
void main ()
{int a,b,k,i,s=0;
printf ("a,b (a>b)=");
scanf ("%d%d",&a,&b);
for(i=a;i<b;i++)
{k=1; { do k++; while ((k<=i/2)&&(i%k!=0));
if (k>i/2) s=s+i;
}
}
printf("niilber=%d",s);
getch ();
}

Comments