Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- using namespace std;
- void ispis();
- void main() {
- cout << "Trocifreni brojevi koji imaju svojstvo ABC = (AB^2)-(C^2) : " << endl;
- ispis();
- system("pause>0");
- }
- void ispis() {
- for (int i = 100; i <= 999; i++) {
- if (i == (pow(i / 10, 2) - pow(i % 10, 2)))
- cout << i << endl;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement