Advertisement
MeehoweCK

Untitled

Jan 7th, 2021
1,018
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.32 KB | None | 0 0
  1. #include <iostream>
  2.  
  3. using namespace std;
  4.  
  5. int nwd(int a, int b)
  6. {
  7.     // miejsce na Twój kod
  8. }
  9.  
  10. int main()
  11. {
  12.     cout << "Wpisz dwie liczby całkowite: ";
  13.     int x, y;
  14.     cin >> x >> y;
  15.     cout << "Najwiekszy wspolny dzielnik liczb " << x << " i " << y << " wynosi " << nwd(x, y) << endl;
  16.     return 0;
  17. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement