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
Why main is used in c?
What are the functions to open and close file in c language?
write a programming in c to find the sum of all elements in an array through function.
Which control loop is recommended if you have to execute set of statements for fixed number of times?
What does the error message "DGROUP exceeds 64K" mean?
typedef enum { html, java, javascript, perl, cgi } lang;The above statement defines a : a) Union b) User defined type c) Enumerated variable d) none
Explain what is a static function?
write a program in C that prompts the user for today's date,tomorrow's date and display the results.Use structures for today's date,tomorrow's date and an array to hold the days for each month of the year.
What is pointer to pointer in c?
How do I swap bytes?
Explain how do you declare an array that will hold more than 64kb of data?
What is a char in c?
Which driver is a pure java driver
What’s a signal? Explain what do I use signals for?
Is it better to bitshift a value than to multiply by 2?