Untitled

mail@pastecode.io avatar
unknown
plain_text
2 years ago
338 B
0
Indexable
Never
#include <iostream>
using namespace std;

int main()
{
    char n;
    char array[10] = { '1','2','3','4','5','6','7','8','9','0'};
    cin >> n;
    for (int i = 0; i < 10; i++)
    {
        if (n == array[i])
        {
            cout << "Yes";
            break;
        }
        else cout << "No"; break;
    }
}