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

4) Write a program that takes a 5 digit number and
calculates 2 power
that number and prints it.

Answer Posted / nitish kumar choudhary

u have to define int as long unsigned int to increase its
size..
normally int cant give u the answer.

void main()
{
long unsigned int res;
int a;
printf("Enter the 5 digit no.: ");
scanf("%d" ,&a);
printf("result is: %uL", a*a);
getch();
}

Is This Answer Correct ?    3 Yes 6 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is the process to generate random numbers in c programming language?

1220


What is the basic structure of c?

1154


Why array is used in c?

1062


Why is sizeof () an operator and not a function?

1091


what are the 10 different models of writing an addition program in C language?

1943


i got 75% in all semester am i eligible for your company

2265


What are integer variable, floating-point variable and character variable?

1299


Is there a way to have non-constant case labels (i.e. Ranges or arbitrary expressions)?

1128


why use functions a) writing functions avoids rewriting the same code over and over b) using functions it becomes easier to write programs and keep track of what they are doing c) a & b d) none of the above

1207


write a program fibonacci series and palindrome program in c

1097


What is main function in c?

1137


What are the types of c language?

1081


What is the difference between single charater constant and string constant?

1137


What is table lookup in c?

1148


How would you use the functions fseek(), freed(), fwrite() and ftell()?

1204