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 a program that takes a 5 digit number and calculates
2 power
that number and prints it.

Answer Posted / akshay

#include<stdio.h>
#include<conio.h>
//Develo0ed by Akshay p.Joy
void main()
{
unsigned long int a,s=1;

int i,j,k,l,m,n;
scanf("%d%d",&m);


for(i=0;i<2;++i)
{
s=s*m;
}


printf("result %ld",s);
getch();
}

Is This Answer Correct ?    5 Yes 11 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How does selection sort work in c?

988


What are the benefits of c language?

1112


How can I generate floating-point random numbers?

1048


Explain what are header files and explain what are its uses in c programming?

1113


Explain which function in c can be used to append a string to another string?

1039


What is modeling?

1003


What is extern variable in c with example?

954


When we use void main and int main?

1020


An arrangement of information in memory in such a way that it can be easily accessed and processed by a programming language a) string b) data structure c) pointers d) array

1092


Can we assign integer value to char in c?

1160


What do you understand by normalization of pointers?

1009


Explain how can you avoid including a header more than once?

1045


Explain what is the difference between #include and #include 'file' ?

971


What are linked lists in c?

1088


What are the different properties of variable number of arguments?

1106