write an interactive program to generate the divisors of a
given integer.
Answer Posted / rakesh ranjan
#include<conio.h>
#include<stdio.h>
main()
{
int n,i;
printf("entre the number");
scanf("%d",&n);
for(i=2;i<n;i++)
{
if(n%i==0)
printf("%d\n",i);
}
getch();
}
| Is This Answer Correct ? | 15 Yes | 2 No |
Post New Answer View All Answers
What does c in a circle mean?
What are the ways to a null pointer can use in c programming language?
How do you print only part of a string?
If I have a char * variable pointing to the name of a function ..
Difference between constant pointer and pointer to a constant.
Why do we need volatile in c?
What are the general description for loop statement and available loop types in c?
Write a program that accept anumber in words
What are the different types of linkage exist in c?
What is the use of void pointer and null pointer in c language?
What are the types of c language?
difference between Low, Middle, High Level languages in c ?
In C programming, what command or code can be used to determine if a number of odd or even?
design and implement a data structure and performs the following operation with the help of file (included 1000 student marks in 5 sub. and %also) 1.how many students are fail in all 5 subjects (if >35) 2. delete all student data those are fail in all 5 subjects. 3. update the grace marks (5 no. if exam paper is 100 marks) 4. arrange the student data in ascending order basis of marks. 5.insert double of deleted students with marks in the list.
Where in memory are my variables stored?