0
Find the error
#include<iostream.h> void main() { int x,n,z; cout<<"enter the value of x and n"; cin>>x,n; z=pow(x,n); cout<<"the value is"<<z; }
2 Antworten
+ 2
cin>>x>>n;
+ 1
Additionally to the point by Meet Mehta;
#include <iostream> no need for file extension .h
#include <cmath> is necessary for definition of pow()
int main() rather than void main()