Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

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


Please Help Members By Posting Answers For Below Questions

What is a structural principle?

1102


What is the advantage of using #define to declare a constant?

1045


Explain what does a function declared as pascal do differently?

1223


What is the difference between %d and %i?

1057


What's the difference between constant char *p and char * constant p?

1098


is it possible to create your own header files?

1056


how is the examination pattern?

1971


how do you write a function that takes a variable number of arguments? What is the prototype of printf () function?

1906


What is the use of gets and puts?

988


What does != Mean in c?

1001


Is javascript based on c?

1011


what is uses of .net

1688


What is the size of array float a(10)?

1099


What is the maximum length of an identifier?

1145


What is the size of a union variable?

1009