• The Facebook Platform

Results 1 to 4 of 4

Thread: divisor

  1. #1
    Join Date
    Jan 2011
    Location
    lahore
    Posts
    51
    Points
    58.63
    Rep Power
    58

    newblink divisor

    assalam
    aj ak aor proramme k sath hazir hua ho , is programme me ap koi number input karo ge ye bta de ga us ke divisors kitne hai..
    so lets start....


    #include <stdio.h>
    #include <conio.h>

    void main(void)
    {
    int n=0,j;
    printf("enter your digits");
    scanf("%d",&n);
    for(j=n;j>0;j--){
    if(n%j==0)
    printf("the divisors is %d",j);
    }
    getch();
    }






  2. #2
    Join Date
    Jan 2010
    Location
    Peshawer
    Posts
    476
    Points
    513.12
    Rep Power
    484

    Default

    Great sharing .. thanks to share with us...

  3. #3
    Join Date
    Jan 2011
    Location
    lahore
    Posts
    51
    Points
    58.63
    Rep Power
    58

    Default

    Quote Originally Posted by *KHAN*JEE* View Post
    Great sharing .. thanks to share with us...

    thanku for encourging me...

  4. #4
    Join Date
    Oct 2011
    Location
    india
    Posts
    17
    Points
    18.16
    Rep Power
    24

    Default

    walikumassalam...
    thankX for sharing


 

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

     

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •