write an interactive program to generate the divisors of a
given integer.
Answer Posted / tamil
void div(int n){
static int i=1;
while(i<=n){
if(!(n%i))printf(" %d",i);
i++;
}
}
main(){
int i;
clrscr();
printf("Enter number:");scanf("%d",&i);
div(i);
getch();
}
| Is This Answer Correct ? | 11 Yes | 9 No |
Post New Answer View All Answers
how to build a exercise findig min number of e heap with list imlemented?
Explain high-order bytes.
What is indirection?
I was asked to write a program in c which when executed displays how many no.of clients are connected to the server.
What is the difference between āgā and āgā in C?
a direct address that identifies a location by means of its displacement from a base address or segment a) absolute address b) relative address c) relative mode d) absolute mode
Explain what are its uses in c programming?
Is c is a middle level language?
write a program to print the consecutive repeated character from the given string... input string is : hhhhjkutskkkkkggggj output should be like this: hhhhkkkkkgggg anyone help me...
Can a variable be both constant and volatile?
How many keywords (reserve words) are in c?
How do you determine whether to use a stream function or a low-level function?
What is pointer to pointer in c?
Difference between linking and loading?
What is the use of printf() and scanf() functions?