veera venkata krishna


{ City } sattenapalli
< Country > india
* Profession * c
User No # 56212
Total Questions Posted # 0
Total Answers Posted # 1

Total Answers Posted for My Questions # 0
Total Views for My Questions # 0

Users Marked my Answers as Correct # 3
Users Marked my Answers as Wrong # 0
Questions / { veera venkata krishna }
Questions Answers Category Views Company eMail




Answers / { veera venkata krishna }

Question { 5387 }

read a number & print all its devisors using c-program?


Answer

#include
#include
void main()
{
int n,i;
clrscr();
printf("enter a number\n");
scanf("%d",&n);
for(i=1;i<=n;i++)
{
if(n%i==0)
printf("%d",i);
}
getch();
}

Is This Answer Correct ?    3 Yes 0 No