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 how can I convert a string to a number?
write a programe to accept any two number and check the following condition using goto state ment.if a>b,print a & find whether it is even or odd and then print.and a
Explain what is the most efficient way to store flag values?
Explain enumerated types.
Which function in C can be used to append a string to another string?
What is main return c?
write a program to find the given number is prime or not
What is character constants?
How can I call system when parameters (filenames, etc.) Of the executed command arent known until run time?
What is the hardest programming language?
Can you please explain the difference between strcpy() and memcpy() function?
write a C program: To search a file any word which starts with ?a?. If the word following this ?a? starts with a vowel.Then replace this ?a? with ?a? with ?an?. redirect with the output onto an output file.The source file and destination file are specified by the user int the command line.
the process of defining something in terms of itself is called (or) in C it is possible for the functions to call themselves. A function called a) nested function b) void function c) recursive function d) indifinite function
What is echo in c programming?
What are the types of unary operators?