Advertisement
Md_hosen_zisad

easyprime

Aug 8th, 2017
346
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 0.26 KB | None | 0 0
  1. #include<stdio.h>
  2. int main()
  3. {
  4.       int n,i;
  5.   printf("enter number ::");
  6.   scanf("%d",&n);
  7.   printf("1");
  8.     for(i=2;i<=sqrt(n);i++)
  9.   {
  10.       if(n%i==0)
  11.       {
  12.           printf(" \n %d",i);
  13.  
  14.       }}
  15.       printf("\n %d",n);
  16.  
  17.     return 0;
  18. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement