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
What is omp_num_threads?
What is 02d in c?
how to write a c program to print list of fruits in alpabetical order?
Badboy is defined who has ALL the following properties: Does not have a girlfriend and is not married. He is not more than 23 years old. The middle name should be "Singh" The last name should have more than 4 characters. The character 'a' should appear in the last name at least two times. The name of one of his brothers should be "Ram" Write a method: boolean isBadBoy(boolean hasGirlFriend , boolean isMarried, int age , String middleName , String lastName , String[] brotherName); isHaveGirlFriend is true if the person has a girlfriend isMarried is true if the person is married age is the age of the person middleName is the middle name of the person lastName is the last name of the person brotherName is the array of the names of his brothers
What is %d called in c?
In c programming, explain how do you insert quote characters (? And ?) Into the output screen?
What does %d do?
how to construct a simulator keeping the logical boolean gates in c
GIVEN A FLOATING POINT NUMBER HOW IS IT ACTUALLY STORED IN MEMORY ? CAN ANYONE EXPLAIN?? THE 32 BIT REPRESENTATION OF A FLOATING POINT NUMBER ALLOTS: 1 BIT-SIGN 8 BITS-EXPONENT 23 BITS-MANTISSA
Write a program to generate a pulse width frequency of your choise,which can be variable by using the digital port of your processor
How can I discover how many arguments a function was actually called with?
what is a NULL Pointer? Whether it is same as an uninitialized pointer?
What is the purpose of & in scanf?
Is null always defined as 0(zero)?
What is file in c preprocessor?