Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- #include <conio.h>
- using namespace std;
- int main()
- {
- char a;
- cout<<"podaj znak:";
- cin>>a;
- if((a>=65 &&a<=90)||(a>=97 &&a<=122))
- {
- cout<<"\nJest to litera";
- }
- else if(a>=48 && a<=57)
- {
- cout<<"\nJest to cyfra";
- }
- else
- {
- cout<<"nie jest to ani litera, ani cyfra";
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement