Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- #include <math.h>
- #include <cstdlib>
- #include <time.h>
- using namespace std;
- int main()
- {
- int pom, a, b;
- cout << "Podaj liczbe:";
- cin >> a;
- cout << "Podaj liczbe:";
- cin >> b;
- while (b!=0)
- {
- pom=b;
- b=a%b;
- a=pom;
- }
- cout << "NWD: " << a;
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement