Computer Science, asked by MrPujan, 1 year ago

Write a C program to calculate x to the power of w.

Answers

Answered by osamahere313
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