C Program to Find Factors of a Number using For Loop

preview_player
Показать описание

Write a C program to display Factors of user entered number, using for loop. All the numbers which perfectly divide a given number are called as Factors of that number.

For Example, if user enters integer number 50. All the numbers which perfectly divide the number 50 are called Factors of number 50.

C Programming Interview / Viva Q&A List

C Programming: Beginner To Advance To Expert
Рекомендации по теме
Комментарии
Автор

A factor of a num(excluding itself) cannot be greater than its half so, we can reduce the iterations putting cout<=num/2

Best_clips_
Автор

I don't understand, please explain what is %, ==0

jenjiliv