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 the purpose of sprintf?

1128


What are multidimensional arrays?

1114


Write a program to reverse a linked list in c.

1117


What is identifier in c?

1009


How many types of arrays are there in c?

1038


What does printf does?

1240


What is the advantage of a random access file?

1196


What is a far pointer in c?

1039


In c programming language, how many parameters can be passed to a function ?

1105


Explain the properties of union. What is the size of a union variable

1184


What is const and volatile in c?

1044


What is local and global variable in c?

1194


in iso what are the common technological language?

2111


What is volatile variable in c?

1087


When we use void main and int main?

1075