Webhosting in Pakistan
Results 1 to 9 of 9

Thread: Finding power of a number

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

    Smile Finding power of a number

    Webhosting in Pakistan
    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. #2
    Shoukat_Bj's Avatar
    Shoukat_Bj is offline Senior Member+
    Last Online
    21st September 2013 @ 11:00 PM
    Join Date
    16 Jul 2013
    Location
    KpK Bajaur
    Age
    28
    Gender
    Male
    Posts
    67
    Threads
    2
    Credits
    0
    Thanked
    3

    Default

    bohot a6a sir

  3. #3
    Join Date
    26 Nov 2010
    Location
    BUREWALA
    Age
    32
    Gender
    Male
    Posts
    195
    Threads
    9
    Credits
    398
    Thanked
    5

    Default

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

  4. #4
    ihsandani is offline Senior Member+
    Last Online
    1st December 2018 @ 01:04 PM
    Join Date
    11 Jul 2013
    Location
    Taank
    Gender
    Male
    Posts
    163
    Threads
    33
    Credits
    900
    Thanked
    6

    Default

    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. #5
    Join Date
    03 Jun 2014
    Location
    iT Dunya
    Gender
    Male
    Posts
    997
    Threads
    51
    Credits
    584
    Thanked
    55

    Default

    Very nice

  6. #6
    TheEducator is offline Member
    Last Online
    6th February 2017 @ 10:11 PM
    Join Date
    26 Sep 2009
    Location
    Jauharabad
    Age
    49
    Gender
    Male
    Posts
    207
    Threads
    40
    Thanked
    19

    Default

    +sum(cell address ^ x)
    +sum(3^2)
    9

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

    Default

    Nice

  8. #8
    ammarbukhari is offline 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
    Threads
    3
    Credits
    802
    Thanked
    4

    Default

    bohot khoobbb

  9. #9
    tayyabsaleem's Avatar
    tayyabsaleem is offline Senior Member+
    Last Online
    29th October 2017 @ 07:09 PM
    Join Date
    28 Jan 2011
    Location
    Jaranwala
    Age
    35
    Gender
    Male
    Posts
    123
    Threads
    0
    Credits
    139
    Thanked
    5

    Default

    Webhosting in Pakistan
    good Word

Similar Threads

  1. Answered number maloom kerna....jiss per sms kiay hon
    By kashifundlas in forum Mobile phones problems and Help Zone
    Replies: 12
    Last Post: 2nd March 2014, 07:02 PM
  2. sms center number of warid,zong,mobilink,telenor,ufone
    By Hassan111 in forum SMS/MMS/EMS/SMSc
    Replies: 25
    Last Post: 19th May 2012, 02:06 PM
  3. Dunian main kisi bi mobile number say kisi bi mobile number per free sms karain.
    By Rizwan chattha in forum General Mobile Discussion
    Replies: 74
    Last Post: 16th January 2012, 10:56 AM
  4. Portible Karne ka tariqa warid mein
    By akram123khan25 in forum General Mobile Discussion
    Replies: 5
    Last Post: 2nd August 2011, 07:55 PM

Bookmarks

Posting Permissions

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