Өгөгдсөн хоёр натурл тоо харилцан анхны тоонууд мөн үү?
#include<stdio.h>
#include <conio.h>
void main ()
{int m,n,k=1,q=1;
printf ("n,m=");
scanf ("%d%d",&n,&m);
do k++; while ((k<=n/2)&&(n%k!=0));
if (k>n/2) printf ("%d too anhny too mun",n);
else printf ("%d too anhny too bish",n);
do q++; while ((k<=m/2)&&(m%q!=0));
if (q>m/2) printf ("%d too anhny too mun",m);
else printf ("%d too anhny too bish",m);
getch ();
}
#include <conio.h>
void main ()
{int m,n,k=1,q=1;
printf ("n,m=");
scanf ("%d%d",&n,&m);
do k++; while ((k<=n/2)&&(n%k!=0));
if (k>n/2) printf ("%d too anhny too mun",n);
else printf ("%d too anhny too bish",n);
do q++; while ((k<=m/2)&&(m%q!=0));
if (q>m/2) printf ("%d too anhny too mun",m);
else printf ("%d too anhny too bish",m);
getch ();
}
gaihaltai gaihaltai unxeer mundag shuu!!!!
ReplyDeletetand amjilt husie unnnnxer mundag bna
ene page buur yanziin
This comment has been removed by the author.
ReplyDeleteLucky Club Online Casino: £10 no deposit bonus
ReplyDeleteJoin Lucky Club today to get £10 no deposit bonus. Play slots, table games and more for fun. 카지노사이트luckclub 18+ Only. Wagering Requirements: Min £5. Max £10.