Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- #include <conio.h>
- #include <cmath>
- using namespace std;
- void step(float x, int n)
- {
- double result;
- result = x;
- for (int i=0 ;i < n-1 ;i++){
- result *=x;
- }
- cout << result;
- }
- int main()
- {
- step(4,2); // Вот сюда циферки вписываете первая это число , вторая степень, ПОНЯТНО ММММММ
- getch();
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement