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

Which driver is a pure java driver

1529


Write a program to use switch statement.

1075


How many main () function we can have in a project?

1064


How can I open files mentioned on the command line, and parse option flags?

1014


What is a c token and types of c tokens?

1008


What is pass by value in c?

1000


How do you define a string?

1043


In C language, the variables NAME, name, and Name are all the same. TRUE or FALSE?

1170


How would you obtain the current time and difference between two times?

1233


A collection of data with a given structure for excepting storing and providing on demand data for multiple users a) linked list b) datastructer c) database d) preprocessor

1036


Explain what is the difference between a free-standing and a hosted environment?

1125


what is the different bitween abap and abap-hr?

2212


what are the different storage classes in c?

1116


Which of these functions is safer to use : fgets(), gets()? Why?

1042


How can I write data files which can be read on other machines with different word size, byte order, or floating point formats?

973