# Thread: Finding power of a number

1. Senior Member+
Last Online
5th October 2013 @ 10:03 PM
Join Date
09 Aug 2010
Location
Peshawar
Gender
Male
Posts
109
13
Credits
710
Thanked
2

## Finding power of a number

Dosto ye program app k liye kisi bhi number ka power find karta he
umeed he acha lage ga

Code:
```#include<iostream>
using namespace std;

double displaypower(double v,double p);

main()
{
double value,power,result;
char again;
int count=0;
do
{
cout<<"\nEnter Value : ";
cin>>value;
cout<<"Enter Power value : ";
cin>>power;
result=displaypower(value,power);
cout<<"Power of "<<value<<" : "<<result;
count++;
cout<<"\n\nWant to enter again : (Y | N) .. ";
cin>>again;
}
while(again=='Y'||again=='y');
cout<<"Program executed "<<count<<" Times....\n\n";
}

double displaypower(double v,double p)
{
double res=1;
for(int i=1;i<=p;i++)
{
res=res*v;
}
return res;
}```

2. bohot a6a sir

3. ye power ka kya matlab hai...???

4. Senior Member+
Last Online
1st December 2018 @ 01:04 PM
Join Date
11 Jul 2013
Location
Taank
Gender
Male
Posts
163
33
Credits
900
Thanked
6
Simple Excel main power maloom karnay ka formula
=power(cell No, power)

Excel ki cell main yeh likhain

=Power(a2,3)
suppose A2 cell main 2 enter kar dain
tu ap ka jawab 8 a jaye ga...

5. Very nice

6. Member
Last Online
6th February 2017 @ 10:11 PM
Join Date
26 Sep 2009
Location
Age
49
Gender
Male
Posts
207
40
Thanked
19
+sum(3^2)
9

7. Senior Member+
Last Online
27th July 2019 @ 09:35 PM
Join Date
25 Jan 2012
Location
QUETTA
Gender
Male
Posts
199
2
Credits
12
Thanked
12
Nice

8. Senior Member+
Last Online
4th September 2015 @ 12:55 PM
Join Date
14 Oct 2014
Location
D.I.Khan
Age
27
Gender
Male
Posts
34
3
Credits
802
Thanked
4
bohot khoobbb

9. good Word

#### Posting Permissions

• You may not post new threads
• You may not post replies
• You may not post attachments
• You may not edit your posts
•