Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include<iostream>
- #include<cstring>
- using namespace std;
- int numar ( int x, int y)
- {
- int z;
- z=1;
- while(z*x<=y)
- {
- z=z*x;
- }
- return z;
- }
- int main()
- {
- cout<<numar (2, 18);
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement