Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // tim so nguyen to trong khoang cho truoc
- #include<stdio.h>
- main(){
- int num1,num2,i,count=0,j;
- scanf("%d %d",&num1,&num2);
- for(i=num1;i<=num2;i++){
- count=0;
- for(j=1;j<=i;j++){
- if(i%j==0){
- count++;
- }
- }
- if(count==2) printf("%d ",i);
- }
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement