0

I need a help writing a c++ program but I couldn't write it here because it's long? If someone can help me I can send it by email

18th Sep 2016, 4:55 AM
Najwa
Najwa - avatar
3 Answers
+ 3
Copy/paste the code here then. Alternatively, save it in Code Playground and share the link to your code here.
18th Sep 2016, 9:21 AM
Zen
Zen - avatar
0
i don't wrote the code yet
18th Sep 2016, 11:03 AM
Najwa
Najwa - avatar
0
//* Modify Lab0C so that the user can enter any amount of pairs * //* of numbers. Each time a pair of numbers is entered, it * //* calculates and displays: //* the 1st # of the pair raised to the 2nd # * //* the 2nd # of the pair raised to the 1st # * //* Then prompt for another pair of numbers. (The program stops * //* executing when the user enters the same number twice). * //* * //* Also delegate the calculation of the power to a function. You * //* need to write the function with two parameters: base & expon. * //* For each pair of numbers entered, call upon the function by * //* passing the 1st # to base and the 2nd # to expon and then pass * //* the 2nd # to base and the 1st # to expon. * //* * //* EXAMPLE: If the user entered 2 and 3 * //* * //* the output would be 2^3=2x2x2=8 * //* 3^2=3x3=9 * //* * //* Then if the user entered 4 and 1 * //* * //* the output would be 4^1=4 * //* 1^4=1x1X1X1=1 * //* * //* If the user entered 5 and 5 the program stops. * //*******************************************************************
18th Sep 2016, 11:32 AM
Najwa
Najwa - avatar