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
Explain which of the following operators is incorrect and why? ( >=, <=, <>, ==)
What is getch c?
What are the preprocessor categories?
Why doesnt this code work?
Write a function that will take in a phone number and output all possible alphabetical combinations
How can I sort more data than will fit in memory?
What is the role of && operator in a program code?
I need previous papers of CSC.......plz help out by posting them.......
Is a pointer a kind of array?
Write a program to print fibonacci series without using recursion?
difference between native and cross compilers
my project name is adulteration of chille powder.how can i explain it to the hr when he asks me about the project?
Synonymous with pointer array a) character array b) ragged array c) multiple array d) none
How does placing some code lines between the comment symbol help in debugging the code?
Are comments included during the compilation stage and placed in the EXE file as well?