C Program to find the factors of a number
Dear friends, I hope everyone is well today, through this video post, I am sharing with you how to find the factorial of a number. I have run the C program online and have shown the results many times by inputting it many times. You will understand it very easily when you see it. Moreover, you can copy the program that I have given below this writing and run it online. And if you know anything, then definitely let me know through the comments.
#include <stdio.h>
int main() {
int n, i;
printf("Enter a number: ");
scanf("%d", &n);
printf("Factors: ");
for(i = 1; i <= n; i++) {
if(n % i == 0)
printf("%d ", i);
}
printf("\n");
return 0;
}
Posted with Speem

https://onlinegdb.com/wxeVn-Uki
а чи можеш ти знайти суму всіх множників числа n - без його самого?
Yes, of course, I can do it .
це тільки перший крок, далі я буду ускладнювати і розвивати цю задачу далі...
Your post have been rewarded by the Speak on Steem curator team!
Now become a plus member delegating at least 500 SP
Ways to support us:
Curated by @mamun123456
Hi friend @
#play
Speem Video Watcher Team @ninapenda
High-Yield Curation by @steem-seven
Your content has been supported!
Maximize your passive income!
Delegate your SP to us and earn up to 0.45 STEEM / 1000 SP.
Click here to see our Tiered Reward System
We are the hope!