G - Цифра
#include <bits/stdc++.h> using namespace std; int main() { char x; cin >> x; if ('0' <= x && x <= '9') { cout << "YES"; } else { cout << "NO"; } return 0; }
Leave a Comment
#include <bits/stdc++.h> using namespace std; int main() { char x; cin >> x; if ('0' <= x && x <= '9') { cout << "YES"; } else { cout << "NO"; } return 0; }