Language: C++

#include<iostream>
using namespace std;

int main()
{
  int N;
  cin>>N;
  if(N%9==0)
  {
    if(N/9<10)
      cout<<'Yes';
    else
      cout<<'No';
  }
  else if(N%8==0)
  {
    if(N/8<10)
      cout<<'Yes';
    else
      cout<<'No';
  }
  else if(N%7==0)
  {
    if(N/7<10)
      cout<<'Yes';
    else
      cout<<'No';
  }
  else if(N%6==0)
  {
    if(N/6<10)
      cout<<'Yes';
    else
      cout<<'No';
  }
  else if(N%5==0)
  {
    if(N/5<10)
      cout<<'Yes';
    else
      cout<<'No';
  }
  else if(N%4==0)
  {
    if(N/4<10)
      cout<<'Yes';
    else
      cout<<'No';
  }
  else if(N%3==0)
  {
    if(N/3<10)
      cout<<'Yes';
    else
      cout<<'No';
  }
    else if(N%2==0)
  {
    if(N/2<10)
      cout<<'Yes';
    else
      cout<<'No';
  }
    else if(N%1==0)
  {
    if(N/1<10)
      cout<<'Yes';
    else
      cout<<'No';
  }

Compiler output:
a.cc:11:13: warning: multi-character character constant [-Wmultichar]
   11 |       cout<<'Yes';
      |             ^~~~~
a.cc:13:13: warning: multi-character character constant [-Wmultichar]
   13 |       cout<<'No';
      |             ^~~~
a.cc:18:13: warning: multi-character character constant [-Wmultichar]
   18 |       cout<<'Yes';
      |             ^~~~~
a.cc:20:13: warning: multi-character character constant [-Wmultichar]
   20 |       cout<<'No';
      |             ^~~~
a.cc:25:13: warning: multi-character character constant [-Wmultichar]
   25 |       cout<<'Yes';
      |             ^~~~~
a.cc:27:13: warning: multi-character character constant [-Wmultichar]
   27 |       cout<<'No';
      |             ^~~~
a.cc:32:13: warning: multi-character character constant [-Wmultichar]
   32 |       cout<<'Yes';
      |             ^~~~~
a.cc:34:13: warning: multi-character character constant [-Wmultichar]
   34 |       cout<<'No';
      |             ^~~~
a.cc:39:13: warning: multi-character character constant [-Wmultichar]
   39 |       cout<<'Yes';
      |             ^~~~~
a.cc:41:13: warning: multi-character character constant [-Wmultichar]
   41 |       cout<<'No';
      |             ^~~~
a.cc:46:13: warning: multi-character character constant [-Wmultichar]
   46 |       cout<<'Yes';
      |             ^~~~~
a.cc:48:13: warning: multi-character character constant [-Wmultichar]
   48 |       cout<<'No';
      |             ^~~~
a.cc:53:13: warning: multi-character character constant [-Wmultichar]
   53 |       cout<<'Yes';
      |             ^~~~~
a.cc:55:13: warning: multi-character character constant [-Wmultichar]
   55 |       cout<<'No';
      |             ^~~~
a.cc:60:13: warning: multi-character character constant [-Wmultichar]
   60 |       cout<<'Yes';
      |             ^~~~~
a.cc:62:13: warning: multi-character character constant [-Wmultichar]
   62 |       cout<<'No';
      |             ^~~~
a.cc:67:13: warning: multi-character character constant [-Wmultichar]
   67 |       cout<<'Yes';
      |             ^~~~~
a.cc:69:13: warning: multi-character character constant [-Wmultichar]
   69 |       cout<<'No';
      |             ^~~~
a.cc: In function 'int main()':
a.cc:70:4: error: expected '}' at end of input
   70 |   }
      |    ^
a.cc:5:1: note: to match this '{'
    5 | {
      | ^