write a c/c++ program that takes a 5 digit number and
calculates 2 power that number and prints it?

Answer Posted / parth ujenia

The condition is input take "5 digit" !
and according to above C prog
output of:12345
is: 27825

because range of integer data type is -32768 to 32767.

Is This Answer Correct ?    7 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How do shell structures work?

572


What is c system32 taskhostw exe?

597


What are register variables? What are the advantage of using register variables?

689


What is #include conio h?

598


What is pivot in c?

570






if p is a string contained in a string?

1406


Why double pointer is used in c?

572


Describe the difference between = and == symbols in c programming?

779


What are control structures? What are the different types?

601


How can I trap or ignore keyboard interrupts like control-c?

620


in case any function return float value we must declare a) the function must be declared as 'float' in main() as well b) the function automatically returned float values c) function before declared 'float' keyword d) all the above

602


Explain is it better to bitshift a value than to multiply by 2?

720


How many types of sorting are there in c?

617


Write a program to generate random numbers in c?

666


How do you use a 'Local Block'?

728