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
Explain what is wrong with this statement? Myname = ?robin?;
Explain the meaning of keyword 'extern' in a function declaration.
What is string constants?
Is struct oop?
Explain what will the preprocessor do for a program?
What are the output(s) for the following ? #include char *f() {char *s=malloc(8); strcpy(s,"goodbye")} main() { char *f(); printf("%c",*f()='A'); }
to print the salary of an employee according to follwing calculation: Allowances:HRA-20% of BASIC,DA-45% of BASIC,TA-10%. Deductions:EPF-8% of BASIC,LIC-Rs.200/-Prof.Tax:Rs.200/- create c language program?
What is 'bus error'?
What are integer variable, floating-point variable and character variable?
the question is that what you have been doing all these periods (one year gap)
What is strcpy() function?
What is array of structure in c?
How many parameters should a function have?
How can I call a function with an argument list built up at run time?
number of times a digit is present in a number