Write a C program to calculate x to the power of w.
Answers
Answered by
2
//this program is in c++
#include<stdio.h>
#include<conio.h>
#include<math.h>
void main()
{float w;
int x;
cout<<"enter the number:";
cin>>x;
cout<<"enter the power";
cin>>w;
cout<<"the number\t"<<x<<"\t raised to the power\t"<<w<<"\t is"<<pow(x,w);
getch();
}
Similar questions
Physics,
7 months ago
Physics,
7 months ago
Math,
1 year ago
History,
1 year ago
Social Sciences,
1 year ago