C Program to find the factor of the given number - With Output

#include<conio.h>
#include<stdio.h>

void main()
{
int i,j,k;
clrscr();
printf(“Enter any number”);
scanf(“%d”,&i);

for(j=1;j<=1;++j)
{
     k=i%j;

if(k==0)
printf(“%d\n”,j);
}

getch();

}

OUTPUT :
Enter any number = 5
1

5
Share on Google Plus

About Akash Manhas

This is a short description in the author block about the author. You edit it by entering text in the "Biographical Info" field in the user admin panel.
    Blogger Comment
    Facebook Comment

0 comments:

Post a Comment