C Program to find the factors of a number

in Ukraine on Steem3 days ago

Image cover

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;
}

IPFS Video

Posted with Speem

Sort:  
 3 days ago 

https://onlinegdb.com/wxeVn-Uki

а чи можеш ти знайти суму всіх множників числа n - без його самого?

Yes, of course, I can do it .

 3 days ago 

це тільки перший крок, далі я буду ускладнювати і розвивати цю задачу далі...

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:

Image

Curated by @mamun123456

aljsqq.gif

Hi friend @

#play

Image

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

Vote Proposal 100Vote Witness @seven.witMeet Speak on Steem

We are the hope!

S7VEN Banner

Coin Marketplace

STEEM 0.06
TRX 0.32
JST 0.061
BTC 68411.35
ETH 2121.78
USDT 1.00
SBD 0.50