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 / usha

#include<stdio.h>

void main()
{
unsigned long int s=1;

int n;
scanf("%d%d",&n);


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


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

Is This Answer Correct ?    1 Yes 3 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

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

1038


Write a program to print fibonacci series using recursion?

1002


What is the use of header?

1047


what is use of malloc and calloc?

1844


Can you mix old-style and new-style function syntax?

1040


An application package has been provided to you without any documents for the following application. The application needs to be tested. How will you proceed?

1167


Is that possible to store 32768 in an int data type variable?

1028


What is structure packing in c?

1024


Explain what are the standard predefined macros?

1068


define string ?

1054


"C" language developed by "Dennis Ritchie" at AT & T. his remarks are a) too general, too abstract b) could deal with only specific problems c) lost generality of BCPL and B restored d) no remarks

1059


What is c language and why we use it?

998


Why c is called procedure oriented language?

995


in linking some of os executables are linking name some of them

2074


What is the difference between union and structure in c?

1083