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



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

Answer / kbhargava.ygl

dont know..tell someeone if u know it

Is This Answer Correct ?    2 Yes 0 No

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

Answer / sushant shrivastava

include<math.h>
include<stdio.h>


int main()
{
int i,num;

printf("Enter the value of i");
scanf("%d",&i)

num=POW(i,2);

printf("%d%d",num);

}

Is This Answer Correct ?    2 Yes 0 No

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

Answer / anusha

#include<stdio.h>
#include<conio.h>
main()
{
unsigned long integer n;
long integer res=1;
int i=1;
clrscr()
printf("please enter 5 digit no:");
scanf("%ld",&n);
for(i=1,i<=n,i++);
{
res=(res*2);
}
printf("Result is %ld",res);
getch();
}

Is This Answer Correct ?    7 Yes 7 No

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

Answer / usha

#include<stdio.h>

void main()
{
unsigned long int s=1;

int n;
scanf("%d%d",&n);


for(int i=0; i<n; i++)
{
s=s*2;
}


printf("result %ld",s);
getch();
}

Is This Answer Correct ?    1 Yes 3 No

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

Answer / akshay

#include<stdio.h>
#include<conio.h>
//Develo0ed by Akshay p.Joy
void main()
{
unsigned long int a,s=1;

int i,j,k,l,m,n;
scanf("%d%d",&m);


for(i=0;i<2;++i)
{
s=s*m;
}


printf("result %ld",s);
getch();
}

Is This Answer Correct ?    5 Yes 11 No

Post New Answer

More C Interview Questions

An integer that indentifies the position of a data item in a sequence of data items a) value b) number c) index d) all of the above

0 Answers  


Is there a way to compare two structure variables?

0 Answers  


Is fortran still used in 2018?

0 Answers  


Three major criteria of scheduling.

1 Answers  


can anyone please tell me wat is backlogs... i was looking for the job openings where i read this.. eligibility criteria minimum 70% in degree without backlogs. is that arrear.. if so is it standing arrear or history of arrears... please help me...

11 Answers   CTS, Indian Navy, L&T, Microsoft, SSB, TCE, TCS,






what is bitwise operator?

1 Answers   IBM,


hi any body pls give me company name interview conduct "c" language only

0 Answers  


Why c is called a middle level language?

0 Answers  


WHAT IS FLOAT?

3 Answers  


What is n in c?

0 Answers  


a C prog to swap 2 no.s without using variables just an array?

5 Answers   TCS,


I didn't count the ducks that I saw in line, but I do remember that one duck was in front of two ducks, another duck behind two ducks. How many ducks did I see?

2 Answers  


Categories