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
Write a progarm to find the length of string using switch case?
Is exit(status) truly equivalent to returning the same status from main?
Sir i need notes for structure,functions,pointers in c language can you help me please
WRITE A CODE IN C TO SEARCH A FILE FROM NOTEPAD FILE.
An arrangement of information in memory in such a way that it can be easily accessed and processed by a programming language a) string b) data structure c) pointers d) array
What is "Hungarian Notation"?
What is a memory leak? How to avoid it?
What is operator promotion?
Why doesnt long int work?
Can the sizeof operator be used to tell the size of an array passed to a function?
What are the different data types in C?
we called a function and passed something do it we have always passed the "values" of variables to the called function. such functions calles are called a) calls by reference b) calls by value c) calls by zero d) none of the above
What is a wrapper function in c?
What is the use of a static variable in c?
What are the restrictions of a modulus operator?