Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- using namespace std;
- int liczba=1,n;
- int main()
- {
- cout<<"Podaj liczbe: ";
- cin>>n;
- while(n>liczba)
- {
- liczba*=2;
- if(liczba==n)
- cout<<"To jest wielokrotnosc dwojki";
- }
- if(n<liczba)
- cout<<"To nie jest wielokrotnosc dwojki";
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement