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(should not use big
integers and exponential functions)

Answer Posted / nitin katakdound

int main(int argc, char *argv)
{
long two_power, five_digit_number;

if(scanf("%ld",&five_digit_number)){
two_power = five_digit_number*five_digit_number;}
printf("\n 2 power of that number is %ld",two_power);

return 0;
}

Is This Answer Correct ?    13 Yes 29 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Explain which of the following operators is incorrect and why? ( >=, <=, <>, ==)

974


What is getch c?

1238


What are the preprocessor categories?

999


Why doesnt this code work?

1003


Write a function that will take in a phone number and output all possible alphabetical combinations

997


How can I sort more data than will fit in memory?

1037


What is the role of && operator in a program code?

1013


I need previous papers of CSC.......plz help out by posting them.......

2242


Is a pointer a kind of array?

1110


Write a program to print fibonacci series without using recursion?

1063


difference between native and cross compilers

2074


my project name is adulteration of chille powder.how can i explain it to the hr when he asks me about the project?

1524


Synonymous with pointer array a) character array b) ragged array c) multiple array d) none

1007


How does placing some code lines between the comment symbol help in debugging the code?

936


Are comments included during the compilation stage and placed in the EXE file as well?

1026