/*mình tìm được một bài ai cần thì tham khảo!!!! */
#include<stdio.h>
#include<conio.h>
int main()
{
int i,n,dem;
printf("nhap so n: "); scanf("%d",&n);
dem=0;
for(i=1;i<=n;i++)
{if(n%i==0)
dem++;}
if(dem==2)
printf("%d la so nguyen to",n);
else
printf("%d khong la so nguyen to",n);
getch();
return 0;
}
Bookmarks