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

Answer Posted / sudarshan

#include<stdio.h>
void main()
{
int a,b;
scanf("%d",&a);
b=a*a;
printf("%d",b);
getch();
}

Is This Answer Correct ?    6 Yes 7 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Tell us something about keyword 'auto'.

1071


Do character constants represent numerical values?

1335


What should malloc(0) do? Return a null pointer or a pointer to 0 bytes?

1071


What are types of preprocessor in c?

1066


What are all different types of pointers in c?

1007


What is signed and unsigned?

1056


#include show(int t,va_list ptr1) { int a,x,i; a=va_arg(ptr1,int) printf(" %d",a) } display(char) { int x; listptr; va_star(otr,s); n=va_arg(ptr,int); show(x,ptr); } main() { display("hello",4,12,13,14,44); }

1279


What are local static variables? How can you use them?

1146


What is the argument of a function in c?

1045


What is getch c?

1294


Do you know the use of 'auto' keyword?

1191


Where static variables are stored in memory in c?

1000


What is double pointer in c?

1038


Explain how are 16- and 32-bit numbers stored?

1265


Q.1 write aprogram to stack using linklist o insert 40 items? Q.2 write a program to implement circular queue with help of linklist?

2119