Question: 1.algorithm to print alphabet triangle in c language 2. algorithm of the following program- algorithm to FIND FACTORS OF A GIVEN NUMBER USING FUNCTIONS. Program-

1.algorithm to print alphabet triangle in c language

2. algorithm of the following program- algorithm to FIND FACTORS OF A GIVEN NUMBER USING FUNCTIONS.

Program-

#include

void Fact_number(int); int main() { int Number; printf("Enter number to find factors: "); scanf("%d", &Number); printf(" Factors of given number are: "); Fact_number(Number); return 0; }

void Fact_number(int Number) { int i; for (i = 1; i <= Number; i++) { if(Number%i == 0) { printf("%d ", i); } } }

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!