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 / 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 ?    4 Yes 0 No

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

how to build a exercise findig min number of e heap with list imlemented?

0 Answers  


What is storage class?

0 Answers  


WRITE A C PROGRAM FOR PRINT "RHOMBUS" STRUCTURE . Example: Enter the numbers :3 * * * * * * * *

3 Answers   Infosys, TCS,


Explain how does flowchart help in writing a program?

0 Answers  


what are advantages of U D F?

1 Answers   Google,


How can I read in an object file and jump to locations in it?

0 Answers  


Will Macros support multiple arguments ?

7 Answers   Oracle,


What is a static function in c?

0 Answers  


write a program in c language for the multiplication of two matrices using pointers?

8 Answers   Ignou,


what is the c source code for the below output? 1 0 1 1 0 1 0 1 0 1 1 0 1 0 1

0 Answers  


a number whose only prime factors are 2,3,5, and 7 is call humble number,,write a program to find and display the nth element in this sequence.. sample input : 2,3,4,11,12,13, and 100.. sample output : the 2nd humble number is 2,the 3rd humble number is 3,the 4th humble number is ,the 11th humble number is 12, the 12th humble number is 14, the 13th humble number is 15, the 100th humble number is 450.

0 Answers  


main() { int ptr[] = {1,2,23,6,5,6}; printf("%d",&ptr[3]-&ptr[0]); }

8 Answers   Vector,


Categories