4) Write a program that takes a 5 digit number and
calculates 2 power
that number and prints it.

Answer Posted / deepshree sinha

#include<stdio.h>
#include<conio.h>
#include<math.h>
void main()
{
int n,m
printf("enter any five digit number");
scanf("%d ",&n);
m=pow(2,n);
printf("m=%d",m);
getch();
}

Is This Answer Correct ?    5 Yes 4 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What are linker error?

612


What is the usage of the pointer in c?

596


What do you mean by a local block?

623


Which is best book for data structures in c?

590


Explain how can type-insensitive macros be created?

564






write a program using linked list in which each node consists of following information. Name[30] Branch Rollno Telephone no i) Write the program to add information of students in linked list

2225


What is bash c?

550


What is unsigned int in c?

551


Explain how can you determine the size of an allocated portion of memory?

616


Why is c called a structured programming language?

671


Why is a semicolon (;) put at the end of every program statement?

620


What is atoi and atof in c?

612


When a c file is executed there are many files that are automatically opened what are they files?

587


What is c++ used for today?

655


Explain what is the benefit of using const for declaring constants?

608