Advertisement
Md_hosen_zisad

1-100prime

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