Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- using namespace std;
- int main()
- {
- int a;
- cout<<"Podaj a=";
- cin>>a;
- if((a>0)&&(a<10))
- {
- cout<<"Liczba jest cyfra";
- }
- else if ((a>=10)&&(a<100))
- {
- cout<<"Liczba jest dziesiatka";
- }
- else if ((a>=100)&&(a<1000))
- {
- cout<<"Liczba jest setka";
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement