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 |
List at least 10 sorting methods indicating their average case complexity, worst case complexity and best case complexity.
What is the difference between CV and Resume ?
What is an lvalue in c?
difference between function & structure
how to find a 5th bit is set in c program
Why do we need a structure?
Take an MxN matrice from user and then sum upper diagonal in a variable and lower diagonal in a separate variables. Print the result
How do I get an accurate error status return from system on ms-dos?
What are the advantages of Macro over function?
What is a header file?
#include<stdio.h> int main(){ int i=10; int *ptr=&i; *ptr=(int *)20; printf("%d",i); return 0; } Output: 20 can anyone explain how came the output is 20
main() { int i=0; while(+(+i--)!=0) i-=i++; printf(i); }