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
What is the c value paradox and how is it explained?
When do you not use the keyword 'return' when defining a function a) Always b) Never c) When the function returns void d) dfd
Explain what are the standard predefined macros?
How to write a code for reverse of string without using string functions?
Explain the properties of union. What is the size of a union variable
1) There is a singing competition for children going to be conducted at a local club. Parents have been asked to arrive at least an hour before and register their children’s names with the Program Manager. Whenever a participant registers, the Program Manager has to position the name of the person in a list in alphabet order. Write a program to help the Program Manager do this by placing the name in the right place each time the Program Manger enters a name. The Logic should be written in Data Structures?
Can main () be called recursively?
Explain what is the use of a semicolon (;) at the end of every program statement?
Why is c known as a mother language?
What is the difference between the local variable and global variable in c?
What are the standard predefined macros?
What are shell structures used for?
Define recursion in c.
When should I declare a function?
FORMATTED INPUT/OUTPUT functions are a) scanf() and printf() b) gets() and puts() c) getchar() and putchar() d) all the above