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 / deepshree sinha

#include<stdio.h>
#include<conio.h>
#include<math.h>
void main()
{
int n,m
printf("enter any five digit number");
scanf("%d ",&n);
m=pow(2,n);
printf("m=%d",m);
getch();
}

Is This Answer Correct ?    5 Yes 4 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How many keywords are there in c?

1021


What is indirection? How many levels of pointers can you have?

1090


Does free set pointer to null?

953


Explain the advantages and disadvantages of macros.

1035


Lists the benefits of c programming language?

1067


Can main () be called recursively?

1064


Explain the difference between exit() and _exit() function?

1109


How do I get a null pointer in my programs?

1060


What is operator promotion?

1012


How can you allocate arrays or structures bigger than 64K?

1083


Why string is used in c?

954


Write an algorithm for implementing insertion and deletion operations in a singly linked list using arrays ?

3457


What is the concatenation operator?

1090


What is the meaning of ?

990


how to introdu5ce my self in serco

1938