Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- using namespace std;
- int nwd(int a, int b)
- {
- // miejsce na Twój kod
- }
- int main()
- {
- cout << "Wpisz dwie liczby całkowite: ";
- int x, y;
- cin >> x >> y;
- cout << "Najwiekszy wspolny dzielnik liczb " << x << " i " << y << " wynosi " << nwd(x, y) << endl;
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement