Write a program that takes a 5 digit number and calculates 2
power that number and prints it
Answer Posted / subhashini
void main()
{
long int n,x;
clrscr();
printf(" Enter 5 digit number:");
scanf("%d",&n);
x=2^n;
printf("result: %d",x);
getch();
}
| Is This Answer Correct ? | 1 Yes | 9 No |
Post New Answer View All Answers
What is the advantage of an array over individual variables?
What is a pointer and how it is initialized?
How can I open files mentioned on the command line, and parse option flags?
What is the use of parallelize in spark?
Is it better to use a macro or a function?
application attempts to perform an operation?
Write a program to find the biggest number of three numbers in c?
Not all reserved words are written in lowercase. TRUE or FALSE?
What does 4d mean in c?
WHAT IS THE DEFINATION OF IN TECHNOLOGY AND OFF TECHNOLOGY ?
what are the advantages of a macro over a function?
Explain what is the advantage of a random access file?
What are the ways to a null pointer can use in c programming language?
What is nested structure?
Does sprintf put null character?