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...

read a number & print all its devisors using c-program?

Answer Posted / karna

//all devisors of a number
#include<stdio.h>
#include<conio.h>
void main()
{
int n,i;
printf("Enter the number");
scanf("%d",&n);
for(i=1;i<=n;i++)
{
if((n%i)==0)
{
printf("%d\n",i);
}
else;
}
getch();
}

Is This Answer Correct ?    6 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is the Purpose of 'extern' keyword in a function declaration?

1049


Is null a keyword in c?

1151


What is nested structure in c?

1033


What are conditional operators in C?

1063


What are the advantages of using macro in c language?

1086


What is a newline escape sequence?

1066


in ‘C’ language for Matrix Multiplication fails” Introspect the causes for its failure and write down the possible reasons for its failure.

8011


What are the advantages and disadvantages of pointers?

1032


explain how do you use macro?

1111


What is the difference between a function and a method in c?

1047


What is difference between array and pointer in c?

1048


What is the difference between abs() and fabs() functions?

1077


Explain what are preprocessor directives?

1029


what is the height of tree if leaf node is at level 3. please explain

2107


how do you programme Carrier Sense Multiple Access

1939