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

Explain high-order bytes.

1060


What is sizeof c?

1001


What does c mean in basketball?

939


Explain logical errors? Compare with syntax errors.

1008


show how link list can be used to repersent the following polynomial i) 5x+2

2190


Tell us the use of fflush() function in c language?

1083


What are the header files used in c language?

991


What is the use of bitwise operator?

1065


Is c easier than java?

998


What is the argument of a function in c?

987


In c programming, explain how do you insert quote characters (? And ?) Into the output screen?

1197


What does stand for?

1043


What is the symbol indicated the c-preprocessor?

1163


write a proram to reverse the string using switch case?

2880


Why header files are used?

1063