Search:

Type: Posts; User: yusiye

Search: Search took 0.01 seconds.

  1. Thread: fmod problem

    by yusiye
    Replies
    3
    Views
    9,285

    Re: fmod problem

    I changed to

    double List ()
    {
    double Div = N;
    d = fmod(Div, N);
    while (--Div > 0){

    if( d == 0 )
  2. Thread: fmod problem

    by yusiye
    Replies
    3
    Views
    9,285

    fmod problem

    How to use fmod inside a if function?

    double List ()
    {
    double Div = N;

    while (--Div > 0){

    if((N % Div) == 0 )
    printf("%.lf +", Div);
  3. Replies
    13
    Views
    2,911

    Thanks, Do you have any idea about the divisor,(...

    Thanks, Do you have any idea about the divisor,( not use modulo), That may help also.
  4. Replies
    13
    Views
    2,911

    It asks to get a number of its factors including...

    It asks to get a number of its factors including 1(except the number itself). I want to write a new function for the LIST
  5. Replies
    13
    Views
    2,911

    Thanks a lot, Do you have any idea about the...

    Thanks a lot, Do you have any idea about the DIVISOR, the LIST function isn't really come from myself, I don't really understand it.:(
  6. Replies
    13
    Views
    2,911

    Your idea is really great, but the problem is...

    Your idea is really great, but the problem is it's too late, it's due this noon
  7. Replies
    13
    Views
    2,911

    The problem is from the divisor"List" function....

    The problem is from the divisor"List" function. I'm still debugging.
  8. Replies
    13
    Views
    2,911

    Sorry, I still don't get it. How to make it work?

    Sorry, I still don't get it. How to make it work?
  9. Replies
    13
    Views
    2,911

    problem with the divisor

    I'm still work with my Prefect Number problem. But still have a little problem, the problem asks show all the divisor like this"1 + 2 + 3"
    I tried the use "+" in the function, but the problem is i...
  10. Replies
    16
    Views
    2,609

    I tried the 1st. but it still goes to the...

    I tried the 1st. but it still goes to the negative numbers. :confused:
  11. Replies
    16
    Views
    2,609

    But i did call the function in the main. But what...

    But i did call the function in the main. But what kind of a loop should I use in the prefect function.
    can I use for instead of if?
  12. Replies
    16
    Views
    2,609

    hold numbers with array

    I'm writing a problem to output all the prefect number which is less than 1million. But I have a little problem with hold all the numbers by using array. It only shows the first prefect number "6",...
  13. Replies
    6
    Views
    8,466

    #include #include void...

    #include <stdio.h>
    #include <stdlib.h>

    void List (int N);
    int N = 0;
    void main (void)
    {
    while (N < 40)
    {
    N++;
  14. Replies
    6
    Views
    8,466

    I don't need anyone to coding for me. i need idea...

    I don't need anyone to coding for me. i need idea of this program
  15. Replies
    6
    Views
    8,466

    How to find the proper divisor?

    The problems says "a program will find the sum of the proper divisors of a give number n. The proper divisors on n are the numbers less than n that divides it evenly, they do not include n itself." I...
  16. Thread: array[] problem

    by yusiye
    Replies
    6
    Views
    1,342

    array[] problem

    The question asks to take the following list{12,31, 43, 23,25, 78, 200, 109, 345, 5, 188} into an integer array, and let the program find the smallest, median, and largest value and print them out....
Results 1 to 16 of 16