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

c program to compute AREA under integral

0 Answers   Infosys,


write a program to remove occurrences the word from entered text?

1 Answers  


What is the difference between array and linked list in c?

0 Answers  


Define VARIABLE?

0 Answers   ADP,


write a C program to print the program itself ?!

16 Answers   TCS,






Iam a B.Tech graduate and completed my engineering in 2009, from 2005 to 2009 and after that i had done nothing.Now i want to do job and get into BPO field . Friends give me suggestions as what to say in interview... if they ask me that what would you had done ... these many years without doing job ??????? pls urgent

0 Answers  


what is the significance of static storage class specifier?

0 Answers  


Find greatest of two numbers using macro

4 Answers   Bosch, Siemens,


write a program to convert a expression in polish notation (postfix) to inline (normal) something like make 723+* (2+3) x 7 (not sure) just check out its mainly printing expression in postfix form to infix

0 Answers  


What is a char in c?

0 Answers  


write a function that accepts an array A with n elements and array B with n-1 elements. Find the missing one in array B,with an optimized manner?

2 Answers   Zensar,


What is the difference function call by value & function call by reference?

6 Answers  


Categories