Write a program that takes a 5 digit number and calculates 2
power
that number and prints it.
Answer / s.shanmugam24
#include<stdio.h>
#include<conio.h>
#include<math.h>
void main(void)
{
int power,i;
i=2;
clrscr();
printf("enter the power values");
scanf("%d",&power);
i=pow(power);
printf("the power is",i);
}
| Is This Answer Correct ? | 2 Yes | 9 No |
What is difference between stdio h and conio h?
What are the different data types in C?
What is a pointer on a pointer in c programming language?
What is meant by errors and debugging?
what is the difference between call by value and call by reference?
5 Answers Genpact, Global Logic, Infosys,
write a c programme for add of two numbers with out use of arthematic operators
Explain what is the purpose of "extern" keyword in a function declaration?
WHAT IS PRE POSSESSORS?
can we initialize all the members of union?
What is spark map function?
hOW Can I add character in to pointer array of characters char *a="indian"; ie I want to add google after indian in the char *a
value = 0xabcd; for (loop = 1; (value >> 1) & 1 | loop & 1; loop++) { foo(); if (loop & 1) value >>= 1; } how many times is foo() executed?