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
What is the purpose of sprintf?
What are multidimensional arrays?
Write a program to reverse a linked list in c.
What is identifier in c?
How many types of arrays are there in c?
What does printf does?
What is the advantage of a random access file?
What is a far pointer in c?
In c programming language, how many parameters can be passed to a function ?
Explain the properties of union. What is the size of a union variable
What is const and volatile in c?
What is local and global variable in c?
in iso what are the common technological language?
What is volatile variable in c?
When we use void main and int main?