Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- #include <fstream>
- using namespace std;
- ifstream f("bac.txt");
- int main()
- {
- int k, n, x, y, i;
- f >> n;
- for (i = 0;i > n;i++)
- {
- f >> k >> y;
- if (x == pow(k,y))
- cout << x << " ";
- else
- cout << "NU";
- }
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement