write a program that takes 5 digit no and calculate 2 power
that no and print it.
Answer Posted / venkataramakrishna.danduri
#include <iostream.h>
void main()
{
int b = 0;
int num5digit;
cin>>num5digit;
b = 1<< num5digit;
cout<<"b = "<<b;
}
| Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers
What is the difference between while and do while loop?
When should we use multiple inheritance?
What is the basic of c++?
What is the full form of ios?
What do nonglobal variables default to a) auto b) register c) static
write a porgram in c++ that reads an integer and print the biggest digit in the number
In a function declaration what does extern means?
Which function should be used to free the memory allocated by calloc()?
Why c++ is faster than java?
What are c++ manipulators?
What is endl?
Assume an array of structure is in order by studentID field of the record, where student IDs go from 101 to 500. Write the most efficient pseudocode algorithm you can to find the record with a specific studentID if every single student ID from 101 to 500 is used and the array has 400 elements. Write the most efficient pseudocode algorithm you can to find a record with a studentID near the end of the IDs, say in the range from 450 to 500, if not every single student ID in the range of 101 to 500 is used and the array size is only 300
Which ide is best for c++?
Why do we need pointers?
What do the header files usually contains?