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.
i have done maximum par but i m findind problem in the
commented area.
please help...

Answer Posted / ansh

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

Is This Answer Correct ?    1 Yes 5 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Tell me what is the purpose of 'register' keyword in c language?

1039


What is sizeof return in c?

1090


What is the value of a[3] if integer a[] = {5,4,3,2,1}?

1148


why return type of main is not necessary in linux

2151


What are formal parameters?

1174


Explain what is wrong with this program statement?

1160


What do you mean by recursion in c?

1168


How do you define structure?

1093


How can I manipulate individual bits?

1099


What is the difference between NULL and NUL?

1352


What is the right type to use for boolean values in c? Is there a standard type?

1061


What is array within structure?

1174


What are c header files?

1037


What are the rules for identifiers in c?

1122


Explain the bubble sort algorithm.

1113