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

Answers were Sorted based on User's Feedback



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

Answer / chinmayee

no the program should not be that because the qs is 2 power
that 5 digit number

Is This Answer Correct ?    3 Yes 1 No

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

Answer / 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

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

Answer / manojpadhi04

please inform me the answer

Is This Answer Correct ?    3 Yes 6 No

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

Answer / nitish kumar choudhary

u have to define int as long unsigned int to increase its
size..
normally int cant give u the answer.

void main()
{
long unsigned int res;
int a;
printf("Enter the 5 digit no.: ");
scanf("%d" ,&a);
printf("result is: %uL", a*a);
getch();
}

Is This Answer Correct ?    3 Yes 6 No

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

Answer / sathishmani

#include<stdio.h>
#include<conio.h>
void main()
{
int a;
a=12345;
printf("\n The Result is ",a*a);
getch();
}

Is This Answer Correct ?    6 Yes 18 No

Post New Answer

More C Interview Questions

a program that can input number of records and can view it again the record

0 Answers   Accenture,


Write a program to exchange two variaables without temp

9 Answers   Geometric Software,


how to make program without <> in library.

1 Answers   ADITI,


How to write a program for swapping two strings without using 3rd variable and without using string functions.

7 Answers   iGate, Infotech,


Add Two Numbers Without Using the Addition Operator

0 Answers  






a single linked list consists of nodes a to z .print the nodes in reverse order from z to a using recursion

0 Answers   Mindteck,


How do you override a defined macro?

0 Answers  


What are the languages are portable and platform independent?Why they are like that?

1 Answers   Excel, Satyam,


where do we use structure pointer?

1 Answers  


Hai what is the different types of versions and their differences

0 Answers  


What is s or c?

0 Answers  


What is "Duff's Device"?

0 Answers   Celstream,


Categories