Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- #include <cstdio>
- using namespace std;
- int f(string &s, int n) {
- for (int i = 0; i < n; i++)
- if ((s[i] > 'z' || s[i] < 'a') && (s[i] > 'Z' || s[i] < 'A'))
- return 1;
- return 0;
- }
- int main() {
- char buff[79];
- scanf("%s", buff);
- string s(buff);
- int n = s.length();
- if (f(s, n) == 1)
- printf("not all letters");
- else
- printf("all letters");
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement