Advertisement
Guest User

xdxd

a guest
Sep 26th, 2016
60
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. using namespace std;
  3. int main()
  4. {
  5.     int a;
  6.     cout<<"Podaj a=";
  7.     cin>>a;
  8.     if((a>0)&&(a<10))
  9.     {
  10.         cout<<"Liczba jest cyfra";
  11.     }
  12.     else if ((a>=10)&&(a<100))
  13.     {
  14.         cout<<"Liczba jest dziesiatka";
  15.     }
  16.     else if ((a>=100)&&(a<1000))
  17.         {
  18.             cout<<"Liczba jest setka";
  19.            
  20.         }
  21.     }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement