Write a program that takes a 5 digit number and calculates 2
power
that number and prints it.
Answer Posted / 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 |
Post New Answer View All Answers
5 Write an Algorithm to find the maximum and minimum items in a set of ‘n’ element.
Explain what are preprocessor directives?
Explain how do you print only part of a string?
What are the application of void data type in c?
What is a dynamic array in c?
What are multibyte characters?
what is the syallabus of computer science students in group- 1?
What is a example of a variable?
What is the difference between variable declaration and variable definition in c?
Explain bit masking in c?
Which header file should you include if you are to develop a function which can accept variable number of arguments?
Why doesnt this code work?
will u please send me the placement papers to my mail???????????????????
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?
Why is sprintf unsafe?