Answers for "can we use pow() function for usigned int in c++"

C++
1

how to write something in power of a number in c++

#include <iostream>
#include <cmath>
using namespace std;
int main(){
  cout<<pow(10,2);
  return 0;
}
Posted by: Guest on December-02-2020
-2

pow function c++

#include <iostream>
#include <cmath>
using namespace std;
int main(){ 
	int x = 2;
	int y = 3;
	cout<<pow(x,y); 
}
Posted by: Guest on April-21-2021

Browse Popular Code Answers by Language