Advertisement
FloudMe77

Untitled

Mar 23rd, 2019
86
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.30 KB | None | 0 0
  1. #include <iostream>
  2. using namespace std;
  3. int liczba=1,n;
  4. int main()
  5. {
  6.    cout<<"Podaj liczbe: ";
  7.    cin>>n;
  8.    while(n>liczba)
  9.    {
  10.     liczba*=2;
  11.     if(liczba==n)
  12.      cout<<"To jest wielokrotnosc dwojki";
  13.    }
  14.    if(n<liczba)
  15.     cout<<"To nie jest wielokrotnosc dwojki";
  16.    return 0;
  17. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement