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

What is scope rule of function in c?

1102


What are dangling pointers in c?

1239


What is queue in c?

1109


Explain the difference between #include "..." And #include <...> In c?

1033


How can I open a file so that other programs can update it at the same time?

1188


Write a program to print ASCII code for a given digit.

1096


Explain the advantages of using macro in c language?

1004


Do pointers store the address of value or the actual value of a variable?

1083


Explain what are bus errors, memory faults, and core dumps?

1283


How do you define CONSTANT in C?

1283


What is meant by initialization and how we initialize a variable?

1054


What do you understand by normalization of pointers?

1060


What is the purpose of type declarations?

1121


Write a program to use switch statement.

1136


any "C" function by default returns an a) int value b) float value c) char value d) a & b

1087