write an interactive program to generate the divisors of a
given integer.
Answer Posted / dally
#include<stdio.h>
int main()
{
int n,i=1;
printf("Value for n\n");
scanf("%d\n",&n);
while(i<=n)
{
if(n%i == 0)
printf("%d\n",i);
i++;
}
}
| Is This Answer Correct ? | 8 Yes | 5 No |
Post New Answer View All Answers
Explain high-order bytes.
What is sizeof c?
What does c mean in basketball?
Explain logical errors? Compare with syntax errors.
show how link list can be used to repersent the following polynomial i) 5x+2
Tell us the use of fflush() function in c language?
What are the header files used in c language?
What is the use of bitwise operator?
Is c easier than java?
What is the argument of a function in c?
In c programming, explain how do you insert quote characters (? And ?) Into the output screen?
What does stand for?
What is the symbol indicated the c-preprocessor?
write a proram to reverse the string using switch case?
Why header files are used?