Advertisement
omegapharma

Untitled

Feb 19th, 2018
65
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.44 KB | None | 0 0
  1. #include <iostream>
  2. #include <conio.h>
  3.  
  4. using namespace std;
  5.  
  6. int main()
  7. {
  8. char a;
  9. cout<<"podaj znak:";
  10. cin>>a;
  11.  
  12. if((a>=65 &&a<=90)||(a>=97 &&a<=122))
  13. {
  14. cout<<"\nJest to litera";
  15. }
  16. else if(a>=48 && a<=57)
  17. {
  18. cout<<"\nJest to cyfra";
  19. }
  20. else
  21. {
  22. cout<<"nie jest to ani litera, ani cyfra";
  23. }
  24. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement