answersLogoWhite

0

#include<stdio.h>

void findfact(int num)

{

int i;

for(i=1;i<num;i++)

{

if(num%i==0)

printf("Factor for %d is %d\n",num,i);

}

}

main()

{

int a;

printf("\nEnter a number:");

scanf("%d",&a);

findfact(a);

}

User Avatar

Wiki User

16y ago

What else can I help you with?

Related Questions

Write a c program to find given number is prime or not?

Yes, do write, or if you're too lazy to your homework, use google.


Could you write a assembly language program in tasm To check whether a given number present in a sequence of given memory location containing the string to be checked in 8086?

8086 assembly language program to check wether given number is perfect or not


Write a C program to extract a given word from a file?

program to extract a given word from a file


Lab manual in mca 1st sem from ignou?

write a program in C to check whether a given number is apalindrome or not


One of two factors of a given number?

If the given number has two factors, one of them is 1.


How can you write a program specification for a given report?

It is your face


Write a C program called MonthDays to find the number of days in a given month Test your code with different input values to demonstrate that your function is robust?

Write a C program called MonthDays to find the number of days in a given month Test your code with different input values to demonstrate that your function is robust?


How to write A Java program to print number of digits in a given number?

One way to do this is to convert the number to a String, then use the corresponding String method to find out the length of the String.


Shell program for gcd of three given numbers?

write a shell program for finding out gcd of three given numbers? write a shell program for finding out gcd of three given numbers? write a shell program for finding out gcd of three given numbers? check bellow link http://bashscript.blogspot.com/2009/08/gcd-of-more-than-two-numbers.html


How do you know a number if its factors are given?

There are two ways in which the factors can be given. You are given all the prime factors (and their multiplicity). In that case simply multiply them all together. Or You are given each factor. In this case, the biggest of these is the number.


Is the number of factors of a given number is limited?

Yes.


How do you write a program that outputs a given characters in reverse?

write the javascript code to display the reverse no. of given no. (e.g. 247 reverse of 742)