how to make

Write a programe that asks the user to enter the base and the power and gives me the answer please answer today and quickly
no
#1.
This is the General C++ Programming sub-forum, whilst this belongs to Beginners.

#2.
Try to be less demanding and more acceptive with ANY feedback or help you get at all, we are doing this to help others, not to contend other.

#3.
Work on your spelling.

#4.
1
2
3
4
5
6
7
8
9
10
11
12
13
14
#include <iostream>
#include <cmath.h>

int main()
{
    double dBase;
    double dPower;
    std::cout << "x^y :: Please enter x\n";
    std::cin >> dBase;
    std::cout << "x^y :: Please enter y\n";
    std::cin >> dPower;
    std::cout << pow(x,y) << "\n";
    system("pause"); // Don't nag about the system call here or I WILL kill you. I am not in the mood to make a slightly more complex alternative - although better - for threads like these. Have a nice day. ~ Kyon
}
closed account (z05DSL3A)
You shouldn't use system("pause");. :¬P


You forgot #5. Don't do other people's homework for them.
Please come over and wash my car. Today and quickly.
Sure thing. I'll be there in a minute.
Come over and clean the board from home-workys...
I really need one of those code obfuscators, can't wait to be posting unreadable code for the next time I come across a homework thread. :P
why just don´t use the visual studio integrated?^^...

Ahhh... Forgot its only for .NET
Last edited on
Topic archived. No new replies allowed.