asmodeus94

char

Jan 15th, 2013
48
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. #include <string.h>
  3. #include <conio.h>
  4. int main()
  5. {
  6. using namespace std;
  7. char a;
  8. a='a';
  9. cout<<a;
  10. cout << "Podaj znak do sprawdzenia ";
  11. cin >> a;
  12. if (a > 47 and a < 58) cout << "\nJest to cyfra"; else cout << "\nInny znak";
  13. a=12;
  14. cout<<a;
  15. system("pause>null");
  16. return 0;
  17. }
Advertisement
Add Comment
Please, Sign In to add comment