Write a program that takes a 5 digit number and calculates
2 power
that number and prints it.
Answer Posted / 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 |
Post New Answer View All Answers
How can I display a percentage-done indication that updates itself in place, or show one of those twirling baton progress indicators?
Is c procedural or functional?
What is data type long in c?
What does it mean when a pointer is used in an if statement?
How can I manipulate strings of multibyte characters?
Differentiate between a structure and a union.
Define VARIABLE?
Explain the difference between ++u and u++?
5 Write an Algorithm to find the maximum and minimum items in a set of ānā element.
find the value of y y = 1.5x+3 for x<=2 y = 2x+5 for x>2
How does sizeof know array size?
Why is c fast?
why programs in c are running with out #include
typedef struct{ char *; nodeptr next; } * nodeptr ; What does nodeptr stand for?
What is the difference between c and python?