factoring

Sample banner

0 / 5. 0

factoring

Category: Problem solving

Subcategory: Computer Science

Level: College

Pages: 1

Words: 275

/* C Program to Find Factors of a Number using While Loop */
#include <stdio.h>

int main()
{
    int Number, i = 1;
    printf(“n Please enter a decimal number between 0 and 255n”);
    scanf(“%d”, &Number);
    printf(“n The factors of a number are:n”);
    while (1 <= Number)
    {
        if(Number%i == 0)
        {
            printf(“%d “, i);
        }
        i++;
    }
    return 0;
}

Free factoring Essay Sample, Download Now

Don’t waste time!

Order Original Essay on the Similar Topic

Get an original paper on the same topic

from $10 per-page