Horje
find factors of a number in c Code Example
find factors of a number in c
#include <stdio.h>
int main() {
    int num, i;
    printf("Enter a positive integer: ");
    scanf("%d", &num);
    printf("Factors of %d are: ", num);
    for (i = 1; i <= num; ++i) {
        if (num % i == 0) {
            printf("%d ", i);
        }
    }
    return 0;
}




C

Related
curl ftp upload file to directory Code Example curl ftp upload file to directory Code Example
random float number in C Code Example random float number in C Code Example
siteorigin shortcodes Code Example siteorigin shortcodes Code Example
online code runner .c Code Example online code runner .c Code Example
gdebi install with yes option Code Example gdebi install with yes option Code Example

Type:
Code Example
Category:
Coding
Sub Category:
Code Example
Uploaded by:
Admin
Views:
10